Skip to content

manu-ox/DockerVerse

Repository files navigation

DockerVerse

Telegram bot to manage docker containers.

Screenshots

Features

  • START, STOP or RESTART containers through bot.
  • Get real-time updates when a container starts, stops, restarts, or gets destroyed.
  • Retrive logs by time and number of lines.
  • Allow multiple users to manage.
  • Can be executed locally or on a server with same minimal config.
  • Keeps track of Docker events and user actions in event.log file.

Pre-requisites

  • Docker
  • Telegram account

Environment Variables

Required:

  • TELEGRAM_API_ID: The api_id obtained after creating application at my.telegram.org.
  • TELEGRAM_API_HASH: The api_hash obtained after creating application at my.telegram.org.
  • TELEGRAM_BOT_TOKEN: The bot api token. Send message /newbot to @BotFather in telegram to create a bot.
  • AUTHORIZED_USER_IDS: Telegram account ids of authorized users. Send a message to @userinfobot to get id.

Optional:

  • PROTECTED_CONTAINER_IDS: Ids of containers to protect.
  • ALLOWED_CONTAINER_IDS: Ids of containers allowed to access.
  • CONTAINER_IDS_TO_IGNORE: Ids of containers to ignore. Have no effect if ALLOWED_CONTAINER_IDS is specified.

Setup

  1. Clone this repository and navigate to the project directory.
git clone https://github.com/manu-ox/DockerVerse.git && cd DockerVerse
  1. Copy file .env-sample to .env
cp .env-sample .env
  1. Edit the .env file, fill the environment variables and save the file.
nano .env
  1. Try running the application using docker-compose.
docker-compose up --build
  1. Run the application in detached mode.
docker-compose up -d

Credits


About

Telegram bot to manage docker containers.

Resources

License

Stars

Watchers

Forks

Contributors