I drink, but alcohol makes me feel terrible so I don't drink nearly as much or as often as many of my friends. But I still hang out with them and we still have a good time. It's not that big of a deal.
Alcohol is a quick dopamine hit and a signal that fun is about to happen. But, really, what are you doing /during/ the fun? Talking with friends. Playing games. Doing recreational activities. Eating a good meal. Taking your mind off the troubles of the day. That's the core. That's the fun.
The dopamine of the core fun is going to take a little more time to hit, that's all. You have to be patient when you do those core fun activities for that to happen. And it will.
You have to retrain yourself. Nothing more, nothing less.
To help yourself along you can pick a new trigger; a signal to yourself to get into fun mode. Pop a tic-tac. Repeat a mantra three times in your head 'work hard, play hard'. Whatever. But do it consistently and don't do anything you wouldn't do while drinking (like ruminating over work or actually getting back to work). You'll break the spell!
This is all assuming you're not an alcoholic and actually physically dependent on alcohol. (Cravings, self destructive behavior, compulsion to drink, agitation when not drinking etc) If that's the case you'll need some sort of treatment and quickly. And you will probably have to remove yourself from situations where you might relapse. I've seen alcoholism absolutely destroy people and it's not something to tackle by yourself.