Discharge

I have been having a lot of discharge. I've always had this issue. It comes and goes. After sex theres a smell and its not really bad but it doesn't smell good. I have asked my doctor to give me something and he just gave me a gel to put on the top of my vagina but i feel like its coming from the inside. It may just be my ph balance or something but has this happened to anyone? And what did y'all use to make it go away?