diff --git a/bxl-rpi/apps/docker-compose.smarthome.yaml b/bxl-rpi/apps/docker-compose.smarthome.yaml index 9e78724..00b8d8f 100644 --- a/bxl-rpi/apps/docker-compose.smarthome.yaml +++ b/bxl-rpi/apps/docker-compose.smarthome.yaml @@ -52,6 +52,7 @@ services: image: nodered/node-red:latest volumes: - $DATA/nodered:/data + - /etc/localtime:/etc/localtime:ro networks: - smarthome - external diff --git a/bxl-rpi/system/docker-compose.monitoring.yaml b/bxl-rpi/system/docker-compose.monitoring.yaml index 7e7ce96..bf2ae93 100644 --- a/bxl-rpi/system/docker-compose.monitoring.yaml +++ b/bxl-rpi/system/docker-compose.monitoring.yaml @@ -107,5 +107,6 @@ services: networks: monitoring: + name: monitoring external: external: true diff --git a/bxl-rpi/system/docker-compose.watchtower.yaml b/bxl-rpi/system/docker-compose.watchtower.yaml new file mode 100644 index 0000000..53987bf --- /dev/null +++ b/bxl-rpi/system/docker-compose.watchtower.yaml @@ -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