Skip to content

Commit 9aadda3

Browse files
committed
use environment variable for watchtower hostname (helpful for multi-server setups)
1 parent a16665b commit 9aadda3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

watchtower/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ WATCHTOWER_NOTIFICATION_URL=FILL IN SLACK WEBHOOK URL HERE OR COMMENT OUT FOR NO
22
TZ=America/Los_Angeles
33
# sometimes servers report "could not do head request" due to rate limiting - silence those warnings
44
WATCHTOWER_WARN_ON_HEAD_FAILURE=never
5+
WATCHTOWER_HOSTNAME=watchtower

watchtower/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
watchtower:
33
image: containrrr/watchtower
4-
hostname: watchtower
4+
hostname: "${WATCHTOWER_HOSTNAME}"
55
container_name: watchtower
66
restart: unless-stopped
77
command: --schedule "0 0 4 * * *"

0 commit comments

Comments
 (0)