初始化提交

This commit is contained in:
2026-01-07 10:25:32 +08:00
parent f184e37c6b
commit 58c88cf53a
46 changed files with 8815 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
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'
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