Depression always comes in waves, over time you learn how to ride them out. Some people can do it by talking things out, some people can do it alone, some people need medication. It's up to you to figure out which one you are, unfortunately, but the fact you recognize it is a good step, it means you know you need to fight to keep swimming.
It's a cliche metaphor, but it's literally the best one.