Just because you had addiction issues in the past doesn't mean you can not receive medical care for insomnia. Lack of sleep tears your entire mind and body apart. I know some Doctors only allow 1 week supply of medication(s) at a time to help discourage taking more than is necessary.
Maybe you need to have another discussion with your Doctor or maybe find a new one.
I feel for you! I have suffered the hell of Insomnia since I was 12, Even now on doses of medications that could put a small country to sleep, I go in cycles where I will sleep 1-2 hours a week ...
Good luck , Please talk to your doctor