From 40be2a91531f986f175cd5669cd8e1d48f5d5eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rogelio=20Dom=C3=ADnguez=20Hern=C3=A1ndez?= Date: Mon, 21 Feb 2022 16:21:42 -0600 Subject: [PATCH] add watchtower/shoutrrr examples --- docs/examples.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/examples.md b/docs/examples.md index f7c85d70..67aa73ff 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -75,3 +75,21 @@ One of my co-workers uses the following Ansible task to let him know when things method: POST body: "{{ inventory_hostname }} reseeding complete" ``` + +## Watchtower notifications (shoutrrr) +You can use `shoutrrr` generic webhook support to send watchtower notifications to your ntfy topic. + +Example docker-compose.yml: +```yml +services: + watchtower: + image: containrrr/watchtower + environment: + - WATCHTOWER_NOTIFICATIONS=shoutrrr + - WATCHTOWER_NOTIFICATION_URL=generic+https://ntfy.sh/my_watchtower_topic?title=WatchtowerUpdates +``` + +Or, if you only want to send notifications using shoutrrr: +``` +shoutrrr send -u "generic+https://ntfy.sh/my_watchtower_topic?title=WatchtowerUpdates" -m "testMessage" +```