From ce19bd909cc3b79c14cdada1e7e2e1e480fea494 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Tue, 27 Dec 2022 04:00:58 +0100 Subject: [PATCH] Replace Diun with passive watchtower --- mounts/diun/config/diun.yml | 14 ---------- mounts/diun/data/README.md | 0 mounts/{diun => watchtower}/secrets/README.md | 0 utilities.docker-compose.yml | 26 ++++++++----------- 4 files changed, 11 insertions(+), 29 deletions(-) delete mode 100644 mounts/diun/config/diun.yml delete mode 100644 mounts/diun/data/README.md rename mounts/{diun => watchtower}/secrets/README.md (100%) diff --git a/mounts/diun/config/diun.yml b/mounts/diun/config/diun.yml deleted file mode 100644 index de3325f..0000000 --- a/mounts/diun/config/diun.yml +++ /dev/null @@ -1,14 +0,0 @@ -watch: - schedule: 0 */6 * * * - firstCheckNotif: true - -notif: - gotify: - endpoint: http://gotify - tokenFile: /run/secrets/gotify_token - -providers: - docker: - endpoint: tcp://docker:2375 - watchByDefault: true - watchStopped: true diff --git a/mounts/diun/data/README.md b/mounts/diun/data/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/mounts/diun/secrets/README.md b/mounts/watchtower/secrets/README.md similarity index 100% rename from mounts/diun/secrets/README.md rename to mounts/watchtower/secrets/README.md diff --git a/utilities.docker-compose.yml b/utilities.docker-compose.yml index ff37545..cc2fa20 100644 --- a/utilities.docker-compose.yml +++ b/utilities.docker-compose.yml @@ -1,16 +1,19 @@ services: - diun: - image: crazymax/diun + watchtower: + image: containrrr/watchtower + environments: + DOCKER_HOST: tcp://docker:2375 + WATCHTOWER_INCLUDE_RESTARTING: true + WATCHTOWER_INCLUDE_STOPPED: true + WATCHTOWER_MONITOR_ONLY: true + WATCHTOWER_NOTIFICATIONS: gotify + WATCHTOWER_NOTIFICATION_GOTIFY_URL: http://gotify + WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN: /run/secrets/gotify_token networks: - docker - gotify - volumes: - - diun:/data - configs: - - source: diun - target: /etc/diun/ secrets: - - source: diun_gotify_token + - source: watchtower_gotify_token target: gotify_token restart: unless-stopped @@ -59,11 +62,6 @@ networks: external: true volumes: - diun: - driver_opts: - type: none - o: bind - device: ${MOUNT_DIR?}/diun/data/ smokeping: driver_opts: type: none @@ -76,8 +74,6 @@ volumes: device: ${MOUNT_DIR?}/ddclient/data/ configs: - diun: - file: ${MOUNT_DIR?}/diun/config/ # smokeping: # file: ${MOUNT_DIR?}/smokeping/config/ ddclient: