初始化提交
This commit is contained in:
35
Publish/docker-compose-metric.yml
Normal file
35
Publish/docker-compose-metric.yml
Normal 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
|
||||
Reference in New Issue
Block a user