Move watchtower to a new service

This commit is contained in:
Colin Hebert
2023-01-20 17:45:55 +01:00
parent b78f32aed5
commit 3a64655355
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
name: Docker monitoring
services:
watchtower:
image: containrrr/watchtower
environment:
DOCKER_HOST: tcp://docker:2375
WATCHTOWER_INCLUDE_RESTARTING: true
WATCHTOWER_INCLUDE_STOPPED: true
WATCHTOWER_MONITOR_ONLY: true
WATCHTOWER_NOTIFICATION_URL: /run/secrets/watchtower_notification_url
networks:
- docker
secrets:
- watchtower_notification_url
restart: unless-stopped
networks:
docker:
external: true
secrets:
watchtower_notification_url:
file: ${NASCOMPOSE_SERVICES?}/docker-monitoring/secrets/notification_url

View File