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
|
2024-01-26 22:24:49 +01:00
|
|
|
image: "containrrr/watchtower:1.7.1@sha256:6dd50763bbd632a83cb154d5451700530d1e44200b268a4e9488fefdfcf2b038"
|
2023-03-21 19:00:37 +01:00
|
|
|
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
|
2023-10-31 11:37:50 +01:00
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_TO: info@mgrote.net
|
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: mail-relay # "container_name" des Relays
|
|
|
|
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: 25 # nicht benötigt, nur als Referenz stehen gelassen
|
|
|
|
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: "" # nicht benötigt, nur als Referenz stehen gelassen
|
|
|
|
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: "" # nicht benötigt, nur als Referenz stehen gelassen
|
2023-04-06 19:53:27 +02:00
|
|
|
WATCHTOWER_NOTIFICATION_EMAIL_DELAY: 2
|
|
|
|
WATCHTOWER_NO_STARTUP_MESSAGE: true
|
2023-03-21 19:00:37 +01:00
|
|
|
labels:
|
2023-04-20 14:50:33 +02:00
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2023-10-31 11:37:50 +01:00
|
|
|
networks:
|
|
|
|
- mail-relay # binde externe Netzwerk an Container
|
2023-03-21 19:00:37 +01:00
|
|
|
|
|
|
|
# monitore diesen Container nur
|
|
|
|
# labels:
|
2023-04-20 14:50:33 +02:00
|
|
|
# com.centurylinklabs.watchtower.monitor-only: true
|
2023-03-21 19:00:37 +01:00
|
|
|
# dieser container hängt von x ab
|
2023-04-20 14:50:33 +02:00
|
|
|
# com.centurylinklabs.watchtower.depends-on: mf-db
|
2023-03-21 19:00:37 +01:00
|
|
|
# aktualisiere container
|
2023-04-20 14:50:33 +02:00
|
|
|
# com.centurylinklabs.watchtower.enable: true
|
2023-10-31 11:37:50 +01:00
|
|
|
|
|
|
|
######## Networks ########
|
|
|
|
networks:
|
|
|
|
mail-relay: # damit das mail-relaay im anderen Container erreicht werden kann
|
|
|
|
external: true
|