How do you get self-control?

I feel out of control.

I’m drinking whatever, eating whatever, doing whatever feels good to try to cope with the redundancy of my life. I hate acknowledging the redundancy because I feel as if I’m being ungrateful. I never want to be ungrateful because my life is beautiful. Storms come through but overall, it’s pleasant. Comfortable.

And that’s what my soul is aching to get away from, “comfortable.” I don’t feel challenged because there is no one to challenge me. I’m forced to challenge myself and that’s a challenge that I feel I never can achieve.
I’ve gained all the weight I lost back which is not surprising because I’ve been enjoying everything. Today seemingly always the right day for a pint of ice cream or fast food. I need to get away from that.

But how? How do you turn away from, not just bad foods, but the every day difficulties when the urge to continue is ever-present?

Some are quick to say “Just stop! Have some self-control?” I hear you. Still, how do you actually acquire it when the urges are so strong?