How do you treat yeast infections?

I use to get yeast infections every months after my menstrual my doctor told me to eat yogurt everyday.