Credits for guide: megadlbot project
- Follow the official docker installation guide
- Easiest way to install docker-compose is
sudo pip install docker-compose - Also you can check other official methods of installing docker-compose here
- We dont need to clone the repo (yeah Docker-compose does that for us)
- Setup configs (the 2 files in
dockerfolder)-
Download the sample config file
mkdir streamerbot && cd streamerbot
Create and change to a working directorywget https://github.com/Samfun75/SamfunStreamerBot/raw/master/docker/docker-config.ini.sample -O docker-config.ini
Download docker-config.ini filevim docker-config.ini
Fill all the variables witht correct values and save
-
Download the yml file for docker-compose
wget https://github.com/Samfun75/SamfunStreamerBot/raw/master/docker/docker-compose.yml
Download docker-comose.yml
-
- Finally start the bot
docker-compose up -d - Voila !! The bot should be running now
Check logs withdocker-compose logs -f
-
Stop Command
docker-compose stop
This will just stop the containers. Built images won't be removed.
So next time you can start withdocker-compose startcommand and it will start up quickly.
-
Down command
docker-compose down
This will stop and delete the built images. So next time you have to dodocker-compose up -dto start the build and start the bot.