Self-medicating with food

I need to discipline myself again. I realized that I gained all the weight I lost the past year when I self-medicated again with food. I didn’t want to go through days of out-of-whack sleeping patterns again because I was taking pills that balanced my brain but messed with my sleep. And work. Although at that time, it helped me get through the dark days so I stuck with it. But I wanted my sleep back. So now I am off it for a year now and haven’t seen my shrink. I know it’s not recommended to just drop out of therapy but I did. Anyway, something happened again and I blamed myself… I went through self-flagellation and binged on junk food again. I was comforted by food. I knew I hit rock bottom when a friend found me in the dark munching on corn balls. I went through two bags. But it has to stop. I am taking my life back.