You have what is called an “addiction”. An addiction is a self-destructive behavior you can’t control. Or rather, that you can control but not with the normal ease at which you normally control your own actions.
There’s two ways out of an addiction. One is far more effective than the other.
The method that’s more effective short term, but less effective long term, is willpower. Just force yourself to hold off on those treats. Wait five minutes, then dig in. Next time, try waiting six minutes. Just brute force your way out of the behavior.
The method that is less immediately effective, but far more effective long term, is to heal your psychological trauma so that moment-to-moment consciousness is not painful. This will remove the base motivation for pleasure-seeking, making that junk food mildly attractive, but nothing more.
In my own experience with addiction, brute forcing an addiction merely leads to another addiction forming. The only lasting addiction relief I’ve gotten in my life is from deep psychotherapeutic work, with men’s groups, with zen training, with individual therapy, and with native american healing ceremonies.
If your addiction were to alcohol or crack or something else that debilitated you, I’d recommend starting with the brute force method just to get breathing room. But a junk food addiction is more subtle, and doesn’t immediately debilitate you, so my recommendation is to go for the trauma healing strategy.
However, if your job is at all in danger, then I recommend the brute force method to begin with, because the inflammation caused by junk food will affect your job performance and if there’s any danger of losing your job then you need to take immediate action to protect it.