What I had to do was remove myself from my binging environment which was my bedroom after work. But I also had to find something to expell all those emotions (frustration, depression, anxiety, sadness, etc) I was bottling up so I joined a gym. And I hate to admit this but after I got home from the gym (around 8pm) I would take something to help me go to sleep. Not all the time.....just on the nights when binge thoughts were getting the best of me. I had to sleep my way through it. Oh, and I am not advocating this by the way. I know it was very unhealthy! But the best thing I did was start a low carb diet and that helped with cravings big time! I also implemented my own aversion therapy by placing a mirror in front of me as I binged. No matter how good that food tasted I disgusted myself by watching it happen. An image that is forever burned into my memory.
I am 7 months out but I still struggle with binging thoughts sometimes on weekends because I can't spend that much time at the gym. But I don't give in anymore!
To give you an idea as how bad my binging got, my lowest moment was this time last year. In my job it is mandatory to take off a consecutive week off from work. I was depressed and embarressed about my weight and didn't want to see my family or friends. So on the Friday before vacation I purchased over $300 worth of food from the grocery store and 3 chinese food combo meals and camped out inside my house eating for 9 days straight. I ate no less than 5,000 calories a day.
I am glad you are recognizing this unhealthy behavior before it gets harder and harder to reverse. It's going to take work but I have no doubt that you will get this under control provided your resolve stays strong. You've come to the right place for support and lots of hugs!