From 59b63ad36f410d134efb696008e4f6735c64552f Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 22 Nov 2021 09:32:47 +0100 Subject: [PATCH] Introduce watchtower. --- automation/docker-compose.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/automation/docker-compose.yaml b/automation/docker-compose.yaml index 44fdb17..fafa5e0 100644 --- a/automation/docker-compose.yaml +++ b/automation/docker-compose.yaml @@ -39,3 +39,22 @@ services: - "traefik.http.routers.semaphore.rule=Host(`semaphore.lan`)" - "traefik.http.routers.semaphore.service=semaphore" - "traefik.http.services.semaphore.loadbalancer.server.port=3000" + + watchtower: + image: containrrr/watchtower + container_name: watchtower + environment: + TZ: Europe/Berlin + WATCHTOWER_CLEANUP: true + restart: unless-stopped + networks: + - proxy + - internal + volumes: + - /var/run/docker.sock:/var/run/docker.sock + labels: + - "traefik.enable=true" + - "traefik.http.routers.semaphore.entrypoints=web" + - "traefik.http.routers.semaphore.rule=Host(`watchtower.lan`)" + - "traefik.http.routers.semaphore.service=semaphore" + - "traefik.http.services.semaphore.loadbalancer.server.port=80"