Definitely have a chat to a doctor. Many people detox on their own under a doctor's supervision.
It's so great that you found your way here and are seeking help. As others have said, we are have all struggled with addiction at some point. Recovery is an ongoing journey and lifestyle. It's not just about giving up drinking/using.