services: prometheus: image: prom/prometheus:v3.8.1 container_name: prometheus restart: unless-stopped ports: - "9090:9090" command: - '--config.file=/etc/prometheus/prometheus.yml' volumes: - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - ./prometheus:/prometheus node_exporter: image: quay.io/prometheus/node-exporter:v1.10.2 container_name: node_exporter command: - '--path.rootfs=/host' - '--web.listen-address=:9101' network_mode: host pid: host restart: unless-stopped volumes: - '/:/host:ro,rslave' grafana: image: grafana/grafana:12.3.1 container_name: grafana restart: unless-stopped ports: - "3000:3000" environment: - GF_SERVER_ROOT_URL=https://www.hlsq.asia/grafana/ - GF_SECURITY_ADMIN_PASSWORD=admin volumes: - ./grafana:/var/lib/grafana