This looks like it’s going to turn into a debate which is a good thing!
Personally, I often find notifications intrusive… I like little toasts (in the broad sense of the term, actually!)
Hi everyone,
I received an SMS today (from Free) about Gladys restarting. I wondered why. Power outage?..
When I got home, I saw that Gladys had been updated.
That gave me the following idea:
It would be cool to have an « Update » trigger that would allow me to alert myself by SMS.
What do you think?
On my side I added Telegram notifications to Watchtower, which allows me to see which containers have been updated with a basic report. Admittedly it sends notifications every day but at least I know what’s going on.
Voici ce que ça donne dans mon docker compose :
version: '3.3'
services:
watchtower:
image: containrrr/watchtower
restart: always
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
environment:
TZ: Europe/Paris
WATCHTOWER_LIFECYCLE_HOOKS: "true"
WATCHTOWER_NOTIFICATIONS: "shoutrrr"
WATCHTOWER_NOTIFICATION_URL: >
telegram://BOT_TOKEN@telegram/?channels=CHAT_ID
WATCHTOWER_CLEANUP: "true"
# WATCHTOWER_SCHEDULE: 0 0 20 * * *
WATCHTOWER_NOTIFICATION_REPORT: "true"
WATCHTOWER_NOTIFICATION_TEMPLATE: |
{{- if .Report -}}
{{- with .Report -}}
{{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
{{- range .Updated}}
- {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
{{- end -}}
{{- range .Fresh}}
- {{.Name}} ({{.ImageName}}): {{.State}}
{{- end -}}
{{- range .Skipped}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
{{- end -}}
{{- range .Failed}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
{{- end -}}
{{- end -}}
{{- else -}}
{{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
{{- end -}}
and this is what it looks like (I have 3 Docker instances with Watchtower on each) :