1 Commits
Author SHA1 Message Date
thedarty a3f4e43550 Return to email notif 2025-03-13 09:21:54 +01:00
+13 -8
View File
@@ -1,8 +1,8 @@
services:
watchtower:
image: containrrr/watchtower:latest
container_name: WatchTower
hostname: Docker_${HOSTNAME}
container_name: watchtower
hostname: watchtower
mem_limit: 512m
mem_reservation: 128m
cpu_shares: 512
@@ -18,13 +18,18 @@ services:
DOCKER_API_VERSION: 1.45 # SSH docker version 1.41 for Docker engine version 20.10 - 1.43 for Docker engine version 24 - 1.45 for Docker engine version 26.1
WATCHTOWER_INCLUDE_RESTARTING: true # Restart containers after update
WATCHTOWER_INCLUDE_STOPPED: false # Update stopped containers
WATCHTOWER_SCHEDULE: "0 0 0 * * *" # Daily at midnight
WATCHTOWER_SCHEDULE: "0 0 */2 * * *" # Update & Scan containers every 2 hours
WATCHTOWER_LABEL_ENABLE: false
WATCHTOWER_MONITOR_ONLY: false
WATCHTOWER_MONITOR_ONLY: true
WATCHTOWER_TIMEOUT: 30s
WATCHTOWER_LOG_LEVEL: info # Set log level (trace, debug, info, warn, error)
WATCHTOWER_LOG_FORMAT: pretty
WATCHTOWER_NOTIFICATIONS: shoutrrr
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}${HOSTNAME}: {{.Message}}{{println}}{{end}}"
WATCHTOWER_NOTIFICATION_URL: smtp://diun@sda.zone:sda101176@mail.serveur:25/?from=diun@sda.zone&to=thedarty@gmail.com&Auth=none&Encryption=ExplicitTLS&starttls=no&FromName=WatchTower&Subject=WatchTower+Updates
WATCHTOWER_NOTIFICATIONS: email
WATCHTOWER_NOTIFICATION_EMAIL_FROM: diun@sda.zone
WATCHTOWER_NOTIFICATION_EMAIL_TO: thedarty@gmail.com
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: mail.serveur
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_TLS_SKIP_VERIFY: false
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: 25
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: diun@sda.zone
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: sda101176
WATCHTOWER_NOTIFICATION_EMAIL_DELAY: 2
restart: always