Files
selfhost/watchtower/docker-compose.yml

18 lines
656 B
YAML

services:
watchtower:
image: containrrr/watchtower
restart: unless-stopped
container_name: watchtower
#command: --run-once
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $HOME/.docker/config.json:/config.json
environment:
- TZ=Asia/Kolkata
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 2 * * *
- WATCHTOWER_NOTIFICATIONS=${WATCHTOWER_NOTIFICATIONS}
- WATCHTOWER_NOTIFICATIONS_HOSTNAME=${WATCHTOWER_NOTIFICATIONS_HOSTNAME}
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
- WATCHTOWER_NOTIFICATION_TEMPLATE={{range .}}- {{.Message}}{{println}}{{end}}