homelab/bxl-shp/system/docker-compose.watchtower.yaml

34 lines
987 B
YAML
Raw Normal View History

2023-09-26 09:53:42 +02:00
services:
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: unless-stopped
2023-09-26 09:53:42 +02:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
command:
- "--cleanup"
- "--schedule=0 0 3 * * SAT"
- "--label-enable"
#- "--monitor-only"
- "--http-api-metrics=true"
- "--http-api-token=watchtower"
#- "--run-once=true"
# emails notification
- "--notifications=email"
- "--notifications-level=trace"
- "--notification-email-from=watchtower.noreply@bhasher.com"
- "--notification-email-to=watchtower.homelab@bhasher.com"
- "--notification-email-server=bdubois.io"
- "--notification-email-server-port=465"
- "--notification-email-server-user=${SMTP_USER}"
- "--notification-email-server-password=${SMTP_PASSWORD}"
networks:
- monitoring
labels:
- "com.centurylinklabs.watchtower.enable=false"
networks:
monitoring:
external: true