Add watchtower.
This commit is contained in:
parent
2de4849816
commit
cd5455b9d8
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
env_file:
|
||||
- /srv/secrets/watchtower/docker-compose.env # for: WATCHTOWER_NOTIFICATION_URL (format: "telegram://<API_KEY>@telegram?chats=<CHAT_ID>")
|
||||
# chat id: https://api.telegram.org/botXXX:YYYYY/getUpdates (replace the XXX: YYYYY with your BOT HTTP API Token
|
||||
environment:
|
||||
WATCHTOWER_CLEANUP: 1
|
||||
WATCHTOWER_INCLUDE_RESTARTING: 1
|
||||
WATCHTOWER_NOTIFICATIONS: shoutrrr
|
||||
WATCHTOWER_NOTIFICATIONS_HOSTNAME: golem.linux.it
|
||||
# WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
Loading…
Reference in New Issue