2023-09-26 09:53:42 +02:00
|
|
|
services:
|
|
|
|
watchtower:
|
|
|
|
container_name: watchtower
|
|
|
|
image: containrrr/watchtower
|
2023-10-28 13:19:34 +02:00
|
|
|
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"
|
2024-01-30 20:14:32 +01:00
|
|
|
- "--remove-volumes"
|
2023-09-26 09:53:42 +02:00
|
|
|
- "--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:
|
2023-12-26 22:59:06 +01:00
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
2023-09-26 09:53:42 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
monitoring:
|
|
|
|
external: true
|