Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- watchtower:
- image: nickfedor/watchtower:latest
- environment:
- WATCHTOWER_NOTIFICATIONS: shoutrrr
- WATCHTOWER_NOTIFICATION_URL: discord://webtoken@token
- WATCHTOWER_NOTIFICATIONS_HOSTNAME: TOASTER-DOCKER
- 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 -}}
- {{- if .Entries -}}
- Logs:
- {{- end -}}
- {{range .Entries -}}{{.Time.Format "2006-01-02T15:04:05Z07:00"}} [{{.Level}}] {{.Message}}{{"\n"}}{{- end -}}
- restart: unless-stopped
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
Advertisement
Add Comment
Please, Sign In to add comment