From ed20fb6e2a7a5c7dfa6a4107be8fe289cc49cb11 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Mon, 17 Nov 2025 22:16:27 +0100 Subject: [PATCH] fix: Uptime kuma on local traefik --- traefik/dynamic/dynamic.yml | 26 +++++++++++++------------- uptime-kuma/compose.yaml | 10 +++++++--- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/traefik/dynamic/dynamic.yml b/traefik/dynamic/dynamic.yml index 89d021f..4830bb3 100644 --- a/traefik/dynamic/dynamic.yml +++ b/traefik/dynamic/dynamic.yml @@ -42,15 +42,15 @@ http: - security-headers tls: {} - # Uptime Kuma - uptime-kuma: - rule: "Host(`uptime-kuma.forust.xyz`)" - entryPoints: - - websecure - service: uptime-kuma - # middlewares: - # - security-headers - tls: {} + # # Uptime Kuma + # uptime-kuma: + # rule: "Host(`uptime-kuma.forust.xyz`)" + # entryPoints: + # - websecure + # service: uptime-kuma + # # middlewares: + # # - security-headers + # tls: {} # AdGuard Home (public (account required)) adguard: @@ -153,10 +153,10 @@ http: servers: - url: "http://nextcloud-aio-apache:11000" - # Uptime Kuma - uptime-kuma: - loadBalancer: - servers: "http://uptime-kuma:3001" + # # Uptime Kuma + # uptime-kuma: + # loadBalancer: + # servers: "http://uptime-kuma:3001" # Dockmon dockmon: diff --git a/uptime-kuma/compose.yaml b/uptime-kuma/compose.yaml index 98662f4..df6b935 100644 --- a/uptime-kuma/compose.yaml +++ b/uptime-kuma/compose.yaml @@ -2,15 +2,19 @@ services: uptime-kuma: image: louislam/uptime-kuma:2 restart: unless-stopped - volumes: container_name: uptime-kuma + volumes: - ./data:/app/data ports: # : - "3001:3001" labels: - - "traefik.enable=true" - - "traefik.docker.network=traefik-proxy" + - "traefik.enable=true" + - "traefik.http.routers.uptime-kuma.rule=Host(`uptime-kuma.gigaforust`)" + - "traefik.http.routers.uptime-kuma.entrypoints=websecure" + - "traefik.http.routers.uptime-kuma.tls=true" + # - "traefik.http.routers.uptime-kuma.tls.certresolver=myresolver" + - "traefik.http.services.uptime-kuma.loadBalancer.server.port=3001" networks: - traefik-proxy networks: