You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an example docker-compose.yaml for running watchtower, only checking for updates once every day at 16:00 and sending notifications (via discord and slack):
version: "3"services:
watchtower:
image: containrrr/watchtowercontainer_name: watchtowervolumes: [/var/run/docker.sock:/var/run/docker.sock]env:
WATCHTOWER_NOTIFICATION_REPORT: "true"WATCHTOWER_MONITOR_ONLY: "true"WATCHTOWER_NOTIFICATION_URL: > discord://token@channel slack://watchtower@token-a/token-b/token-cWATCHTOWER_NOTIFICATION_TEMPLATE: | {{- with .Report -}} {{- if ( or .Stale .Failed ) -}} {{len .Scanned}} Scanned, {{len .Stale}} Stale, {{len .Failed}} Failed {{- range .Stale}} - {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} has a new image {{.LatestImageID.ShortID}} {{- end -}} {{- range .Fresh}} - {{.Name}} ({{.ImageName}}): {{.State}} {{- end -}} {{- range .Skipped}} - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}} {{- end -}} {{- range .Failed}} - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}} {{- end -}} {{- end -}} {{- end -}} {{- if (and .Entries .Report (or .Report.Stale .Report.Failed)) }} Logs: {{ end -}} {{- range .Entries -}}{{.Time.Format `2006-01-02T15:04:05Z07:00`}} [{{printf `%5.5s` .Level}}] {{.Message}}{{println}}{{- end -}}WATCHTOWER_SCHEDULE: "0 0 16 * * *"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is an example
docker-compose.yaml
for running watchtower, only checking for updates once every day at16:00
and sending notifications (via discord and slack):See #1806 for more templates.
Beta Was this translation helpful? Give feedback.
All reactions