fix: Uptime kuma on local traefik

This commit is contained in:
2025-11-17 22:16:27 +01:00
parent b20c012268
commit 1f9a1c2c62
2 changed files with 20 additions and 16 deletions
+13 -13
View File
@@ -42,15 +42,15 @@ http:
- security-headers - security-headers
tls: {} tls: {}
# Uptime Kuma # # Uptime Kuma
uptime-kuma: # uptime-kuma:
rule: "Host(`uptime-kuma.forust.xyz`)" # rule: "Host(`uptime-kuma.forust.xyz`)"
entryPoints: # entryPoints:
- websecure # - websecure
service: uptime-kuma # service: uptime-kuma
# middlewares: # # middlewares:
# - security-headers # # - security-headers
tls: {} # tls: {}
# AdGuard Home (public (account required)) # AdGuard Home (public (account required))
adguard: adguard:
@@ -153,10 +153,10 @@ http:
servers: servers:
- url: "http://nextcloud-aio-apache:11000" - url: "http://nextcloud-aio-apache:11000"
# Uptime Kuma # # Uptime Kuma
uptime-kuma: # uptime-kuma:
loadBalancer: # loadBalancer:
servers: "http://uptime-kuma:3001" # servers: "http://uptime-kuma:3001"
# Dockmon # Dockmon
dockmon: dockmon:
+7 -3
View File
@@ -2,15 +2,19 @@ services:
uptime-kuma: uptime-kuma:
image: louislam/uptime-kuma:2 image: louislam/uptime-kuma:2
restart: unless-stopped restart: unless-stopped
volumes:
container_name: uptime-kuma container_name: uptime-kuma
volumes:
- ./data:/app/data - ./data:/app/data
ports: ports:
# <Host Port>:<Container Port> # <Host Port>:<Container Port>
- "3001:3001" - "3001:3001"
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik-proxy" - "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: networks:
- traefik-proxy - traefik-proxy
networks: networks: