Add hostname in notifications

This commit is contained in:
2025-03-30 14:48:11 +02:00
parent 5ccafef579
commit 7367fff4c0
+2 -2
View File
@@ -1,8 +1,7 @@
services: services:
watchtower: watchtower:
image: containrrr/watchtower:latest image: containrrr/watchtower:latest
container_name: WATCHTOWER container_name: WatchTower
hostname: watchtower
mem_limit: 512m mem_limit: 512m
mem_reservation: 128m mem_reservation: 128m
cpu_shares: 512 cpu_shares: 512
@@ -24,5 +23,6 @@ services:
WATCHTOWER_TIMEOUT: 30s WATCHTOWER_TIMEOUT: 30s
WATCHTOWER_LOG_FORMAT: pretty WATCHTOWER_LOG_FORMAT: pretty
WATCHTOWER_NOTIFICATIONS: shoutrrr 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_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 restart: always