If run inside a docker-compose setup, the watchdog will notify the configured Slack channel about its shutdown.
To get the watchdog, simply pull the hackaburg/watchdog
image from the Docker hub and pass in your Slack webhook url as an environment variable:
$ docker run \
--rm \
-it \
-e SLACK_WEBHOOK_URL=https://your-slack-webhook_url \
hackaburg/watchdog
This very basic watchdog script is released under the MIT license.