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:
rainyy21
2026-11-14 12:16:28 -05:00
parent ace639179a
commit 5b1b9df29c
2 changed files with 12 additions and 9 deletions
+4 -1
View File
@@ -23,6 +23,9 @@ BACKUP_PORT=22
KUMA_BACKUP_PUSH_URL= KUMA_BACKUP_PUSH_URL=
KUMA_LINKS_PUSH_URL= KUMA_LINKS_PUSH_URL=
# AutoKuma (auto-creates Kuma monitors from kuma.* container labels): your Kuma admin login # AutoKuma (auto-creates Kuma monitors from kuma.* container labels)
# KUMA_URL: the Kuma it manages, e.g. the one on Proxmox; LAN_HOST: this server's LAN IP
KUMA_URL=http://192.168.1.50:3001
LAN_HOST=192.168.50.63
KUMA_USERNAME=admin KUMA_USERNAME=admin
KUMA_PASSWORD= KUMA_PASSWORD=
+8 -8
View File
@@ -24,8 +24,9 @@ services:
labels: labels:
# AutoKuma: kuma.<id>.<type>.<setting> # AutoKuma: kuma.<id>.<type>.<setting>
kuma.rain.group.name: "Rain website" kuma.rain.group.name: "Rain website"
kuma.web.http.name: "Caddy (internal)" # URLs must be reachable from the Kuma on Proxmox, so use this host's LAN address
kuma.web.http.url: "http://web:80" 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.web.http.parent_name: "rain"
kuma.site.http.name: "Public site" kuma.site.http.name: "Public site"
kuma.site.http.url: "https://${SITE_HOST}" kuma.site.http.url: "https://${SITE_HOST}"
@@ -41,10 +42,9 @@ services:
volumes: ["./geoip:/data:ro"] volumes: ["./geoip:/data:ro"]
depends_on: [] depends_on: []
labels: labels:
kuma.tracker.port.name: "Tracker" kuma.tracker.http.name: "Tracker"
kuma.tracker.port.hostname: "tracker" kuma.tracker.http.url: "http://${LAN_HOST:-192.168.50.63}:8080/api/health"
kuma.tracker.port.port: "8000" kuma.tracker.http.parent_name: "rain"
kuma.tracker.port.parent_name: "rain"
linkcheck: linkcheck:
build: { context: ., dockerfile: tracker/Dockerfile } build: { context: ., dockerfile: tracker/Dockerfile }
@@ -62,12 +62,12 @@ services:
volumes: [kuma_data:/app/data] volumes: [kuma_data:/app/data]
# AutoKuma: creates/updates/removes Kuma monitors from the kuma.* labels above. # 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: autokuma:
image: ghcr.io/bigboot/autokuma:latest image: ghcr.io/bigboot/autokuma:latest
restart: unless-stopped restart: unless-stopped
environment: environment:
AUTOKUMA__KUMA__URL: http://kuma:3001 AUTOKUMA__KUMA__URL: ${KUMA_URL:-http://kuma:3001}
AUTOKUMA__KUMA__USERNAME: ${KUMA_USERNAME:-} AUTOKUMA__KUMA__USERNAME: ${KUMA_USERNAME:-}
AUTOKUMA__KUMA__PASSWORD: ${KUMA_PASSWORD:-} AUTOKUMA__KUMA__PASSWORD: ${KUMA_PASSWORD:-}
AUTOKUMA__TAG_NAME: AutoKuma AUTOKUMA__TAG_NAME: AutoKuma