This is a telegram bot which listens for messages and start docker container.
If you are running Minecraft or Factorio or TeamSpeak3 container and you don't need them all the time you might want to stop them in order to save (computing) power, but if you need them, you don't want to log in to the server and time those commands in.
That's why this bot exists: You can write this bot a message and it start the container.
You have to pass the container the Docker socket.
You have to add the Telegrambot-Key via environment variable.
You have to label the container you want the bot to handle like this
telegram-bot: "NAMEOFTHECONTAINER".
app:
image: ausraster/telegram-docker-bot
container_name: telegram-docker-bot
environment:
- ADMIN_ID=0123456789
- BOT_KEY=0123456789:abcdefghijklmn
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
telegram-bot: "Container1"
Content type
Image
Digest
Size
203.8 MB
Last updated
almost 6 years ago
docker pull ausraster/telegram-docker-bot