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

31 lines
893 B
YAML

services:
watchtower:
container_name: watchtower
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
command:
- "--cleanup"
- "--schedule=0 0 3 * * *"
#- "--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
networks:
monitoring:
external: true