The phenomenon you have described is a common one especially among individuals with “addictive” personalities. You gave up one addiction and replaced it immediately with another. Please keep in mind that I’m not saying you are an addict; it is not possible for me to know that but you may have some of the qualities of a person with an addictive personality.
It is difficult to know if you have an eating disorder. Eating disorders are generally associated with individuals who have stopped eating or who regurgitate food, and so forth. It’s possible that you have a binge eating disorder but I do not have enough information to say with certainty whether you have an eating disorder or not.
It is very encouraging that you were able to stop using drugs. That is a difficult thing to do and it can greatly improve your life. Your concern, however, is that you’ve given up the drugs and have developed another serious problem. Something was driving you to use drugs and something is driving you to compulsively eat. The key to stopping the problematic behavior is uncovering the driving force that is leading you to engage in problematic behavior.
My suggestion is that you see a therapist. In my opinion, you are an excellent candidate for therapy because of your success in stopping your drug use. It shows that you have the desire to change and that you are serious about wanting to improve your life. A therapist can help you uncover what is driving you to engage in unhealthy behavior. Something is at the root of the problem but at this point we do not know what it is. If you’d like to find a therapist in your community please search this directory. Thank you for your question.