Have you talked about your fears with those who have helped you during these last six months? They know this is a potential danger for anyone and may be able to connect you with a counselor or clinic near your home to help you.
But the most important step you can take is to turn to Jesus Christ and commit your life - including your future - into His hands. God loves you; He loves you so much that He sent His Son into the world to die for you. And because He loves you, He wants to help you resist temptation and avoid the scourge of drugs in the future. By a simple prayer of faith ask Christ to come into your life today - and He will.
Then ask God to help you in practical ways after you are released. Avoid "friends" who may seek to draw you back into your old ways. It may be hard to avoid them - but don't let them exert any influence over you. The Bible warns, "Do not be misled: 'Bad company corrupts good character'" (1 Corinthians 15:33).
Instead, seek out new friends - friends who can encourage you and help you grow in your relation to God. Ask God to help you find a church where the Bible is taught, and where you can find others who will help you. God bless you.