Bv and pregnancy

So I get bacterial vaginosis every once in awhile and my boyfriend and I have started to try for a baby and he only came in me once and I have it again. What can I do to stop getting it when we are trying to have a baby?