- 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 userge && cd userge
wget https://raw.githubusercontent.com/UsergeTeam/Userge/alpha/config.env.sample -O config.env
vim config.env
- Download the yml file for docker-compose
wget https://raw.githubusercontent.com/UsergeTeam/Userge/alpha/resources/docker-compose.yml
- Download the sample config file
- Finally start the bot
docker-compose up -d
- 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 with
docker-compose start
command
And it won't take time for building from scratch
- This will just stop the containers. Built images won't be removed. So next time you can start with
-
Down command
docker-compose down
- You will stop and delete the built images also. So next time you have to do
docker-compose up -d
to start the bot
- You will stop and delete the built images also. So next time you have to do
- How to see logs
docker-compose logs -f
- How to update
docker-compose up -d
Changes will be fetched from git repo. You can change repo url from docker-compose.yml file