Telegram bot to manage docker containers.
- 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.logfile.
- Docker
- Telegram account
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/newbotto @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 ifALLOWED_CONTAINER_IDSis specified.
- Clone this repository and navigate to the project directory.
git clone https://github.com/manu-ox/DockerVerse.git && cd DockerVerse- Copy file
.env-sampleto.env
cp .env-sample .env- Edit the
.envfile, fill the environment variables and save the file.
nano .env- Try running the application using
docker-compose.
docker-compose up --build- Run the application in detached mode.
docker-compose up -d