Skip to content

Dolce logo

documentation buy me a coffee current release build status licence: MIT docker pulls

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
version: "3"
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:v2.6.0
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
        DISCORD_WEBHOOK: https://discord.com/api/webhooks/<YOUR_WEBHOOK>
  1. You can use the :latest stable version or even :master
  2. 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.
  3. Or connect over a proxy to not expose the whole docker socket to the container.
  4. Configuration of the notifications is done over environment variables, so no need for external configuration files that clutter your project.
  5. By default all services are monitored, but you of course can configure this behaviour.