This is a dear question for me and it took me many years to figure out. For many people, occasional drinking is fine, but for me, small amounts of alcohol will mess with my sleep and health. So I would fix it for a while, but because alcohol is socially acceptable, I would occasionally have a drink and then a few weeks later I was back in the habit of a few drinks a week, which meant poor health.
The answer for me eventually was to write a blog post to myself:
https://blog.jtoy.net/stop-drinking-all-alcohol/
After writing that and occasionally going back to reread it, I don't drink at all :) I hope it helps.