2023-05-17 15:53:11 +02:00
|
|
|
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
|
2023-05-19 21:33:13 +02:00
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
2023-05-17 15:53:11 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
monitoring:
|
|
|
|
external: true
|