Get notified on specific docker container events using webhooks.
The container expects a config mounted to /data/config.json
in the container.
The config contains an array of containers to watch with the following options.
name
: Name of the container (or id).webhook_url
: URL of a webhook to send the notification to (I've only tested ntfy.sh).events
: Array of events to monitor. See https://pkg.go.dev/github.com/docker/docker/api/types/events#Action for a full list
See config.example.json for an example
- Copy the
compose.yml
file - Create the local
data
directory and create aconfig.json
inside- See config.example.json for an example