A comprehensive automation and monitoring solution for Docker. This stack provides Docker event notifications, image monitoring, and automatic container updates through Telegram.
-
Purpose: Sends notifications about Docker container events (start, stop, die, etc.) to Telegram
-
Documentation: GitHub Repository
-
Image: crazymax/diun
-
Purpose: Docker image update notifier that monitors Docker images for updates
-
Documentation: Official Documentation
-
Image: containrrr/watchtower
-
Purpose: Automatically updates running Docker containers to their latest version
-
Documentation: Official Documentation
| Service | Image |
|---|---|
| Diun | crazymax/diun:latest |
| Notifier | lorcas/docker-telegram-notifier:latest |
| Watchtower | containrrr/watchtower:latest |
/var/run/docker.sock to monitor Docker container events. This grants the containers access to the Docker daemon, which requires elevated privileges. Only deploy in trusted networks. For more information, see Docker Security Documentation.
- Create a
.envfile based on.env.example - Set up a Telegram bot using @BotFather
- Get your chat ID (you can use @userinfobot)
- Configure the schedule for updates in the compose file
TELEGRAM_BOT_TOKEN: Your Telegram bot token from @BotFatherTELEGRAM_CHAT_ID: Your Telegram chat IDDOCKER_DATA_BASEFOLDER: Base directory for persistent data (default: /opt/docker/data)
-
Configure your environment variables
-
Deploy the stack:
docker compose up -d
The stack is configured to:
- Run Watchtower updates every Monday, Wednesday, and Friday at 1 PM
- Check for image updates every 6 hours with Diun
- Send notifications for all Docker events
- Automatically restart services if they fail