Add local monitor bridge service

This commit is contained in:
zhi
2026-03-21 16:06:42 +00:00
parent ccfa49bc7d
commit 360743ba6b
5 changed files with 225 additions and 20 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
version: "3.8"
services:
harborforge-monitor:
build: .
container_name: harborforge-monitor
restart: unless-stopped
environment:
- HF_MONITER_BACKEND_URL=https://monitor.hangman-lab.top
- HF_MONITER_IDENTIFIER=${HF_IDENTIFIER:-}
- HF_MONITER_API_KEY=${HF_API_KEY:-}
- HF_MONITER_REPORT_INTERVAL=${HF_REPORT_INTERVAL:-30}
- HF_MONITER_LOG_LEVEL=${HF_LOG_LEVEL:-info}
- HF_MONITER_ROOTFS=/host
- MONITOR_PORT=${MONITOR_PORT:-0}
volumes:
- /:/host:ro
ports:
# Expose MONITOR_PORT on 127.0.0.1 only for plugin communication.
# Only active when MONITOR_PORT > 0.
- "127.0.0.1:${MONITOR_PORT:-9100}:${MONITOR_PORT:-9100}"
network_mode: host