📕Docker Compose

This the easiest and recommended method to host Cat Userbot.

≡ Run your bot in docker with just simple steps

Install required packages

Install git & docker compose
sudo apt install --no-install-recommends -y git docker-compose docker.io

Clone the repo & make config

Change dir to catuserbot & make config.py to save config values
git clone https://github.com/TgCatUB/catuserbot && cd catuserbot && mv exampleconfig.py config.py

Edit the config.py with your config values

  • Modify the config.py with any text editor, like nano config.py

All setup completed, its time to run the bot.

  • Run: sudo docker-compose up

  • Run detached: sudo docker-compose up -d

  • Stop: sudo docker-compose stop

  • Check: sudo docker-compose ps

Whenever there is an update to our base docker image (will be notified via the channel or support group), use the below steps to update your docker instances. This is not part of the main guide or not a method to update the Bot.

Steps to update base docker image**.**

stop the running containers
sudo docker-compose stop
pull the latest image from hub
sudo docker pull catub/core:bullseye
build and run with latest image
sudo docker-compose up --build

Last updated