watchtower schedule

This commit is contained in:
Michael Grote 2023-03-30 15:24:28 +02:00
parent 686162e624
commit 10017f6003
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
version: "3"
services:
watchtower:
restart: always
@ -6,13 +5,12 @@ services:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Europe/Berlin
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_REVIVE_STOPPED=false
- WATCHTOWER_POLL_INTERVAL=86400 # (24 hours)
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=info@mgrote.net
@ -23,6 +21,7 @@ services:
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD={{ lookup('keepass', 'postfix_absender_passwort', 'password') }}
- WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2
- WATCHTOWER_NO_STARTUP_MESSAGE=true
- WATCHTOWER_SCHEDULE=0 20 3 * * * # jeden Tag um 03:20
labels:
- com.centurylinklabs.watchtower.enable=true