From 3eb8726df7a013b5b6913fd00ee19b3c5447ad7e Mon Sep 17 00:00:00 2001 From: orion Date: Thu, 16 Apr 2026 07:53:33 +0000 Subject: [PATCH] feat: add harborforge-monitor service to git-kc compose Same monitor setup as T1: network_mode host, host FS bind-mounted at /host, env vars sourced from .env. --- git-kc/compose.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/git-kc/compose.yaml b/git-kc/compose.yaml index 238b641..0aa480a 100644 --- a/git-kc/compose.yaml +++ b/git-kc/compose.yaml @@ -59,7 +59,7 @@ services: - /home/git:/home/git - ./gitea/app.ini:/etc/gitea/app.ini:ro healthcheck: - test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost:3000/ || exit 1"] + test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:3000/ || exit 1"] interval: 15s timeout: 5s retries: 10 @@ -98,7 +98,7 @@ services: volumes: - ./keycloak/import:/opt/keycloak/data/import:ro healthcheck: - test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/localhost/8080' && exit 0 || exit 1"] + test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/8080' && exit 0 || exit 1"] interval: 15s timeout: 5s retries: 20 @@ -106,6 +106,21 @@ services: networks: - git-kc-net + harborforge-monitor: + image: git.hangman-lab.top/zhi/harborforge-monitor:latest + container_name: harborforge-monitor + restart: unless-stopped + environment: + HF_MONITER_BACKEND_URL: ${HF_MONITOR_BACKEND_URL:-https://hf.hangman-lab.top} + HF_MONITER_IDENTIFIER: ${HF_MONITOR_IDENTIFIER} + HF_MONITER_API_KEY: ${HF_MONITOR_API_KEY} + HF_MONITER_REPORT_INTERVAL: "30" + HF_MONITER_LOG_LEVEL: info + HF_MONITER_ROOTFS: /host + volumes: + - /:/host:ro + network_mode: host + networks: git-kc-net: name: ${DOCKER_NETWORK_NAME}