Docker Live Container Events
Features
Get notified if something (bad) happens to your containers. Supports the following notification options:
All Notifications use a exponential backoff algorithm to avoid spamming you with messages if a container decides to go into a restart loop.
Dolce comes with sensible defaults so you can use it out of the box but also letz you configure most aspects of it in an easy fashion if you so desire:
Example
docker-ompose.yml
services:
dolce:
image: dangrie158/dolce:v2.4.0 # (1)!
restart: unless-stopped # (2)!
volumes:
- /var/run/docker.sock:/var/run/docker.sock # (3)!
environment:
DISCORD_WEBHOOK: https://ptb.discord.com/api/webhooks/<YOUR_WEBHOOK> # (4)!
importantservice: # (5)!
image: "ubuntu:latest"
command: "sleep 1; exit 0;"
restart: unless-stopped
dolce:
image: dangrie158/dolce:v3.2.0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DISCORD_WEBHOOK: https://discord.com/api/webhooks/<YOUR_WEBHOOK>
- You can use the
:latest
stable version or even:master
- Its a good idea to start again if something bad happens. Dolce won't loose any data about restarts and sends you a notification if an unexpected restart of its conainer happened. It even tries to gather the events it missed while the container was down.
- Or connect over a proxy to not expose the whole docker socket to the container.
- Configuration of the notifications is done over environment variables, so no need for external configuration files that clutter your project.
- By default all services are monitored, but you of course can configure this behaviour.