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 # network_mode: host shares the host network namespace, so the bridge # server (if MONITOR_PORT > 0) listens directly on the host's # 127.0.0.1:. `ports:` is ignored under network_mode: # host, so it is intentionally omitted. network_mode: host