8 Commits
Author SHA1 Message Date
thedarty 6fd94d258c Change Schedule to run once a day at 0:00
Update Container
2025-11-10 16:37:33 +01:00
thedarty bdf8ea0dff Change Schedule to run once a week at 0:00 between saturday and sunday 2025-04-21 11:18:32 +02:00
thedarty 3cc54f7389 Add hostname based on $Hostname value 2025-03-30 15:44:43 +02:00
thedarty adb437d036 Change template notif 2025-03-30 15:33:48 +02:00
thedarty 2b5176f487 Change template notif 2025-03-30 15:26:56 +02:00
thedarty 6bdfed2d4d Change template notif 2025-03-30 15:20:19 +02:00
thedarty 7367fff4c0 Add hostname in notifications 2025-03-30 14:48:11 +02:00
thedarty 5ccafef579 Set version for engine 26 2025-03-13 17:28:37 +01:00
+7 -5
View File
@@ -1,8 +1,8 @@
services:
watchtower:
image: containrrr/watchtower:latest
container_name: WATCHTOWER
hostname: watchtower
container_name: WatchTower
hostname: Docker_${HOSTNAME}
mem_limit: 512m
mem_reservation: 128m
cpu_shares: 512
@@ -15,14 +15,16 @@ services:
TZ: Europe/Paris
WATCHTOWER_CLEANUP: true # Remove old images after updating
WATCHTOWER_REMOVE_VOLUMES: false # Remove attached volumes after updating
DOCKER_API_VERSION: 1.43 # 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
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 * */1 *" # Update & Scan containers every weeks
WATCHTOWER_SCHEDULE: "0 0 0 * * *" # Daily at midnight
WATCHTOWER_LABEL_ENABLE: false
WATCHTOWER_MONITOR_ONLY: true
WATCHTOWER_MONITOR_ONLY: false
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
restart: always