From 94f683d091f16cb4499c26d47f522b1b5a7875c5 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 16 Sep 2022 11:52:44 +0200 Subject: [PATCH] Introduction of watchtower to watch for new images. --- monitoring/docker-compose.yaml | 13 +++++++++++++ monitoring/watchtower-config.json | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 monitoring/watchtower-config.json diff --git a/monitoring/docker-compose.yaml b/monitoring/docker-compose.yaml index 0a7ac75..4e1ed8d 100644 --- a/monitoring/docker-compose.yaml +++ b/monitoring/docker-compose.yaml @@ -73,5 +73,18 @@ services: - "traefik.http.routers.grafana-secure.tls.certresolver=infomaniak" - "traefik.http.services.grafana-secure.loadbalancer.server.port=3000" + watchtower: + image: containrrr/watchtower + restart: always + networks: + - monitoring + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ./watchtower-config.json:/config.json + environment: + TZ: Europe/Berlin + WATCHTOWER_INCLUDE_STOPPED: true + WATCHTOWER_MONITOR_ONLY: true + WATCHTOWER_SCHEDULE: "0 0 2 * * *" diff --git a/monitoring/watchtower-config.json b/monitoring/watchtower-config.json new file mode 100644 index 0000000..8f3738a --- /dev/null +++ b/monitoring/watchtower-config.json @@ -0,0 +1,10 @@ +{ + "auths": { + "cs-registry.ddnss.de": { + "auth": "Y2hyaXM6U2VjcmV0MTI=" + }, + "https://index.docker.io/v1/": { + "auth": "Y3MyMjExOkU2U2Njc3ViRFJrYUppMlNMVSUh" + } + } +}