From 5b1b9df29c984e980b027e3f8af42b176cc0e2f8 Mon Sep 17 00:00:00 2001 From: rainyy21 Date: Sat, 14 Nov 2026 12:16:28 -0500 Subject: [PATCH] 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 --- .env.example | 5 ++++- docker-compose.yml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index b7a8419..b7d40f1 100644 --- a/.env.example +++ b/.env.example @@ -23,6 +23,9 @@ BACKUP_PORT=22 KUMA_BACKUP_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_PASSWORD= diff --git a/docker-compose.yml b/docker-compose.yml index 88460c8..014a26d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,8 +24,9 @@ services: labels: # AutoKuma: kuma... 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