35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
version: "3"
|
|
services:
|
|
autoupdate:
|
|
image: containrrr/watchtower
|
|
container_name: Hostname-Autoupdate
|
|
environment:
|
|
TZ: Europe/Stockholm
|
|
WATCHTOWER_SCHEDULE: 0 0 */12 * * *
|
|
WATCHTOWER_NOTIFICATION_URL: discord://XXXX@xxxxx
|
|
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/localtime:/etc/localtime:ro
|
|
command: --scope wtautoupdate
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.scope=wtautoupdate"
|
|
hostname: "Hostname-AutoUpdate"
|
|
restart: unless-stopped
|
|
reportupdate:
|
|
image: containrrr/watchtower
|
|
container_name: Hostname-UpdateCheck
|
|
environment:
|
|
TZ: Europe/Stockholm
|
|
WATCHTOWER_MONITOR_ONLY: 'true'
|
|
WATCHTOWER_SCHEDULE: 0 0 */13 * * *
|
|
WATCHTOWER_NOTIFICATION_URL: discord://XXXX@xxxxx
|
|
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/localtime:/etc/localtime:ro
|
|
command: --scope wtreportupdate
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.scope=wtreportupdate"
|
|
hostname: "Hostname-AutoUpdate"
|
|
restart: unless-stopped |