- 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
- Download the sample config file
mkdir megadl && cd megadl
wget https://raw.githubusercontent.com/eyaadh/megadlbot_oss/dev/mega/working_dir/sampleConfigForDocker.ini.sample -O config.ini
vim config.ini
- Download the yml file for docker-compose
wget https://raw.githubusercontent.com/eyaadh/megadlbot_oss/dev/docker-compose.yml
- Download the sample config file
- Finally start the bot
docker-compose up -d
- Voila !! The bot should be running now
Check logs withdocker-compose logs -f
- Stop Command
- This will just stop the containers. Built images won't be removed. So next time you can start with
docker-compose start
command
And it won't take time for building from scratch
docker-compose stop
- This will just stop the containers. Built images won't be removed. So next time you can start with
- Down command
- You will stop and delete the bilt images also. So next time you have to do
docker-compose up -d
to start the bot
docker-compose down
- You will stop and delete the bilt images also. So next time you have to do