Add the sliced onion and garlic to a heatproof jar. Then, add in the rest of the ingredients and seal with a lid. Shake the jar to mix everything together. Let it cool to room temperature. Enjoy it right away, or store in the fridge (it can last up to 2 weeks).