Definitely a combination of both medications and therapy. Truly. Also, it was important that I cut my drinking way way down. I don't think many people find solid stability when overusing recreational substances. Or for some, using them period! And that includes cannabis.
Alive99 mentions a couple very important things to learn and implement from therapy. Also important is developing more insight into the beginnings of episodes, which is sometimes hard, but with practice improves. Catching them quick is important since allowing full-blown episodes is not only painful or dangerous, but may eventually cause the kindling effect.