Watchtower

This commit is contained in:
Brieuc Dubois 2023-05-17 15:53:11 +02:00 committed by Bhasher
parent 879b700e3e
commit 84319a1506
3 changed files with 32 additions and 0 deletions

View File

@ -52,6 +52,7 @@ services:
image: nodered/node-red:latest
volumes:
- $DATA/nodered:/data
- /etc/localtime:/etc/localtime:ro
networks:
- smarthome
- external

View File

@ -107,5 +107,6 @@ services:
networks:
monitoring:
name: monitoring
external:
external: true

View File

@ -0,0 +1,30 @@
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