From c679e2b81337377f8110e254a1060a02abf46dc4 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Fri, 15 Dec 2023 15:08:44 +0100 Subject: [PATCH] diun: Docker Image Update Notifier --- monitoring/docker-compose.yaml | 21 +++++++++++++++++++++ proxy/docker-compose.yaml | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/monitoring/docker-compose.yaml b/monitoring/docker-compose.yaml index 4c14b36..d37e548 100644 --- a/monitoring/docker-compose.yaml +++ b/monitoring/docker-compose.yaml @@ -104,6 +104,27 @@ services: labels: - "docker.group=monitoring" + + diun: + image: crazymax/diun:latest + command: serve + volumes: + - "${VOLUMES_PATH}/monitoring/diun/data:/data" + networks: + - dockersocket + environment: + - "TZ=Europe/Berlin" + - "DIUN_WATCH_WORKERS=10" + - "DIUN_WATCH_SCHEDULE=0 */6 * * *" + - "DIUN_WATCH_JITTER=30s" + - "DIUN_PROVIDERS_DOCKER_ENDPOINT=tcp://docker-socket-proxy:2375" + - "DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true" + - "DIUN_NOTIF_NTFY_ENDPOINT=${NTFY_SERVER}" + - "DIUN_NOTIF_NTFY_TOPIC=${NTFY_TOPIC}" + - "DIUN_NOTIF_NTFY_TOKEN=${NTFY_TOKEN}" + restart: always + + ################################################################## # here starts data collection of local host diff --git a/proxy/docker-compose.yaml b/proxy/docker-compose.yaml index 4fe6cd3..f934863 100755 --- a/proxy/docker-compose.yaml +++ b/proxy/docker-compose.yaml @@ -3,7 +3,7 @@ services: traefik: image: traefik:${TRAEFIK_VERSION} restart: unless-stopped - environment: + environment: - NETCUP_ENDPOINT=${NETCUP_ENDPOINT} - NETCUP_CUSTOMER_NUMBER=${NETCUP_CUSTOMER_NUMBER} - NETCUP_API_KEY=${NETCUP_API_KEY} @@ -63,12 +63,13 @@ services: docker-socket-proxy: image: tecnativa/docker-socket-proxy restart: unless-stopped - volumes: + volumes: - /var/run/docker.sock:/var/run/docker.sock:ro environment: # grant privileges as environment variables: https://github.com/Tecnativa/docker-socket-proxy#grant-or-revoke-access-to-certain-api-sections - CONTAINERS=1 - INFO=1 + - IMAGES=1 # for diun networks: - dockersocket healthcheck: