-
Hi, is it possible to include the machine's hostname in shoutrrr notifications using Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
svengo
Dec 22, 2020
Replies: 1 comment 1 reply
-
I solved the problem myself using docker-compose on-board tools: First I put version: '2.3'
services:
watchtower:
image: containrrr/watchtower
userns_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Europe/Berlin
- WATCHTOWER_POLL_INTERVAL=28800 # 8 hours
- WATCHTOWER_CLEANUP=true
- "WATCHTOWER_NOTIFICATION_TEMPLATE={{range .}}${HOSTNAME}: {{.Message}}{{println}}{{end}}"
- WATCHTOWER_NOTIFICATIONS=shoutrrr
- WATCHTOWER_NOTIFICATION_URL=telegram://SECRET_TOKEN@telegram?channels=CHANNEL_ID
restart: "${RESTART:-unless-stopped}" It's working like a charm. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
svengo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved the problem myself using docker-compose on-board tools: First I put
HOSTNAME=docker-prod01
in the .env file, then I used the environment variable indocker-compose.yml
: