-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
14 lines (14 loc) · 661 Bytes
/
docker-compose.yml
File metadata and controls
14 lines (14 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: "3"
services:
watchtower:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/hoster/watchtower/config.json:/config.json # optional. Used to log into a private registry
- /etc/localtime:/etc/localtime:ro # optional. Used to sync time with host
command: container1 container2 container3 # optional. Only watch specific containers
environment:
- WATCHTOWER_NOTIFICATIONS=shoutrrr
- WATCHTOWER_NOTIFICATION_URL=telegram://HTTP_API_TOKEN@telegram/?channels=CHAT_ID
- WATCHTOWER_CLEANUP=true # optional. Remove old images after updating