This is a tough one. It takes discipline. I've been through this. For me, it required removing alcohol from the home. Seriously. If it's not available, you won't drink as much. If you want a drink, go out and limit to one or two. It costs a whole lot more when having a beer at a restaurant than at home, so there's a money component to this, too. Plus, when you're out, you have to worry about your blood alcohol level, so you, hopefully, will have enough sense to limit yourself so as to not put others in harm's way.
I have been in your shoes and made this choice years ago. It wasn't easy at first, but it gets easier over time. I still want that glass of wine some evenings or beer on a hot day, but I haven't had alcohol in the home for several years now.