compose: point AutoKuma at an external Kuma
KUMA_URL selects the Kuma AutoKuma manages (e.g. the one on Proxmox). Monitors now use this host's LAN address (LAN_HOST) instead of compose service names, which a Kuma outside this stack can't resolve; the tracker is checked via Caddy at /api/health. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+8
-8
@@ -24,8 +24,9 @@ services:
|
||||
labels:
|
||||
# AutoKuma: kuma.<id>.<type>.<setting>
|
||||
kuma.rain.group.name: "Rain website"
|
||||
kuma.web.http.name: "Caddy (internal)"
|
||||
kuma.web.http.url: "http://web:80"
|
||||
# URLs must be reachable from the Kuma on Proxmox, so use this host's LAN address
|
||||
kuma.web.http.name: "Caddy (LAN)"
|
||||
kuma.web.http.url: "http://${LAN_HOST:-192.168.50.63}:8080"
|
||||
kuma.web.http.parent_name: "rain"
|
||||
kuma.site.http.name: "Public site"
|
||||
kuma.site.http.url: "https://${SITE_HOST}"
|
||||
@@ -41,10 +42,9 @@ services:
|
||||
volumes: ["./geoip:/data:ro"]
|
||||
depends_on: []
|
||||
labels:
|
||||
kuma.tracker.port.name: "Tracker"
|
||||
kuma.tracker.port.hostname: "tracker"
|
||||
kuma.tracker.port.port: "8000"
|
||||
kuma.tracker.port.parent_name: "rain"
|
||||
kuma.tracker.http.name: "Tracker"
|
||||
kuma.tracker.http.url: "http://${LAN_HOST:-192.168.50.63}:8080/api/health"
|
||||
kuma.tracker.http.parent_name: "rain"
|
||||
|
||||
linkcheck:
|
||||
build: { context: ., dockerfile: tracker/Dockerfile }
|
||||
@@ -62,12 +62,12 @@ services:
|
||||
volumes: [kuma_data:/app/data]
|
||||
|
||||
# AutoKuma: creates/updates/removes Kuma monitors from the kuma.* labels above.
|
||||
# Needs the Kuma admin login in .env (KUMA_USERNAME / KUMA_PASSWORD).
|
||||
# Talks to the Kuma on Proxmox: KUMA_URL, KUMA_USERNAME, KUMA_PASSWORD in .env.
|
||||
autokuma:
|
||||
image: ghcr.io/bigboot/autokuma:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
AUTOKUMA__KUMA__URL: http://kuma:3001
|
||||
AUTOKUMA__KUMA__URL: ${KUMA_URL:-http://kuma:3001}
|
||||
AUTOKUMA__KUMA__USERNAME: ${KUMA_USERNAME:-}
|
||||
AUTOKUMA__KUMA__PASSWORD: ${KUMA_PASSWORD:-}
|
||||
AUTOKUMA__TAG_NAME: AutoKuma
|
||||
|
||||
Reference in New Issue
Block a user