I myself have been treated for depression in my early 20s, after leaving military service. Since you know that it is a problem, you have a head start on fixing it.
What I recommend whole heartedly is to seek professional treatment from a qualified person. Talking about it does help, although...