2023-03-21 19:00:37 +01:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
watchtower:
|
2023-03-24 14:19:43 +01:00
|
|
|
restart: always
|
2023-03-21 19:00:37 +01:00
|
|
|
container_name: watchtower
|
|
|
|
image: containrrr/watchtower
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
2023-04-06 19:53:27 +02:00
|
|
|
TZ: Europe/Berlin
|
|
|
|
WATCHTOWER_CLEANUP: true
|
|
|
|
WATCHTOWER_INCLUDE_RESTARTING: true
|
|
|
|
WATCHTOWER_INCLUDE_STOPPED: true
|
|
|
|
WATCHTOWER_REVIVE_STOPPED: false
|
2023-04-06 19:55:40 +02:00
|
|
|
WATCHTOWER_SCHEDULE: "0 20 3 * * *" # jeden Tag um 03:20
|
2023-04-06 19:53:27 +02:00
|
|
|
WATCHTOWER_LABEL_ENABLE: true
|
|
|
|
WATCHTOWER_NOTIFICATIONS: email
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_FROM: info@mgrote.net
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_TO: michael.grote@posteo.de
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: smtp.strato.de
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: 587
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: info@mgrote.net
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: {{ lookup('keepass', 'postfix_absender_passwort', 'password') }}
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_DELAY: 2
|
|
|
|
WATCHTOWER_NO_STARTUP_MESSAGE: true
|
2023-03-21 19:00:37 +01:00
|
|
|
labels:
|
|
|
|
- com.centurylinklabs.watchtower.enable=true
|
|
|
|
|
|
|
|
# monitore diesen Container nur
|
|
|
|
# labels:
|
|
|
|
# - com.centurylinklabs.watchtower.monitor-only=true
|
|
|
|
# dieser container hängt von x ab
|
|
|
|
# - com.centurylinklabs.watchtower.depends-on=mf-db
|
|
|
|
# aktualisiere container
|
|
|
|
# - com.centurylinklabs.watchtower.enable=true
|