29 lines
585 B
YAML
29 lines
585 B
YAML
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
ports:
|
|
- "9090:9090"
|
|
|
|
node_exporter:
|
|
image: prom/node-exporter:latest
|
|
ports:
|
|
- "9100:9100"
|
|
command:
|
|
- '--collector.textfile.directory=/etc/node_exporter'
|
|
volumes:
|
|
- ./node_exporter:/etc/node_exporter
|
|
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
environment:
|
|
- GF_SECURITY_ADMIN_PASSWORD=admin
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- grafana_data:/var/lib/grafana
|
|
|
|
volumes:
|
|
grafana_data:
|