Watchtower
This commit is contained in:
parent
879b700e3e
commit
84319a1506
|
@ -52,6 +52,7 @@ services:
|
|||
image: nodered/node-red:latest
|
||||
volumes:
|
||||
- $DATA/nodered:/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
- smarthome
|
||||
- external
|
||||
|
|
|
@ -107,5 +107,6 @@ services:
|
|||
|
||||
networks:
|
||||
monitoring:
|
||||
name: monitoring
|
||||
external:
|
||||
external: true
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue