Please don't allow others to make you feel bad for not drinking. It's on them because they have no business assuming you will drink.
I think this situation depends on how much you are expected by your co-workers/boss to attend these after-work functions. If you feel you are obligated to attend, maybe thinking of changing careers is something to think about.