Files
HarborForge.Monitor/docker-compose.yml
2026-03-21 16:07:00 +00:00

23 lines
731 B
YAML

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