Watchtower: Simplify auto updates
This commit is contained in:
@ -6,10 +6,9 @@ services:
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_CONFIG: /config
|
||||
WATCHTOWER_POLL_INTERVAL: 21600
|
||||
WATCHTOWER_SCHEDULE: 0 42 * * * *
|
||||
WATCHTOWER_CLEANUP: 1
|
||||
WATCHTOWER_ROLLING_RESTART: 1
|
||||
WATCHTOWER_SCOPE: update
|
||||
WATCHTOWER_NOTIFICATIONS: slack
|
||||
WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: https://discord.com/api/webhooks/{{ watchtower.discord.webhook }}/slack
|
||||
WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER: Watchtower
|
||||
@ -19,28 +18,4 @@ services:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /home/core/.docker:/config
|
||||
restart: always
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=update"
|
||||
|
||||
http:
|
||||
image: containrrr/watchtower:latest
|
||||
privileged: true
|
||||
container_name: HTTP
|
||||
environment:
|
||||
DOCKER_CONFIG: /config
|
||||
WATCHTOWER_POLL_INTERVAL: 900
|
||||
WATCHTOWER_CLEANUP: 1
|
||||
WATCHTOWER_ROLLING_RESTART: 1
|
||||
WATCHTOWER_SCOPE: http
|
||||
WATCHTOWER_NOTIFICATIONS: slack
|
||||
WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: https://discord.com/api/webhooks/{{ watchtower.discord.webhook }}/slack
|
||||
WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER: Watchtower
|
||||
WATCHTOWER_NOTIFICATION_SLACK_ICON_EMOJI: ":whale:"
|
||||
WATCHTOWER_NOTIFICATION_SLACK_ICON_URL: https://raw.githubusercontent.com/containrrr/watchtower/master/logo.png
|
||||
volumes:
|
||||
- /home/core/.docker/:/config/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: always
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=http"
|
||||
...
|
||||
|
Reference in New Issue
Block a user