2024-12-11 19:43:02 +00:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
prometheus:
|
2024-12-14 01:20:10 +00:00
|
|
|
command: --config.file=/etc/prometheus/prometheus.yml --web.config.file=/etc/prometheus/prometheus.web.yml --storage.tsdb.path=/prometheus
|
2024-12-11 19:43:02 +00:00
|
|
|
image: 'prom/prometheus'
|
|
|
|
ports:
|
|
|
|
- '9090:9090'
|
|
|
|
volumes:
|
2024-12-14 01:20:10 +00:00
|
|
|
- 'prometheus-config:/etc/prometheus'
|
2024-12-11 19:43:02 +00:00
|
|
|
- 'prometheus-data:/prometheus'
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
|
|
|
|
grafana:
|
|
|
|
image: 'grafana/grafana'
|
|
|
|
ports:
|
|
|
|
- '3000:3000'
|
|
|
|
volumes:
|
|
|
|
- 'grafana-storage:/var/lib/grafana'
|
2024-12-14 01:20:10 +00:00
|
|
|
- 'grafana_demo1_grafana-provisioning:/etc/grafana/provisioning'
|
2024-12-11 19:43:02 +00:00
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
|
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
volumes:
|
2024-12-14 01:20:10 +00:00
|
|
|
grafana_demo1_grafana-provisioning:
|
|
|
|
external:
|
|
|
|
true
|
2024-12-11 19:43:02 +00:00
|
|
|
grafana-storage:
|
2024-12-14 01:20:10 +00:00
|
|
|
prometheus-config:
|
2024-12-11 19:43:02 +00:00
|
|
|
prometheus-data:
|
|
|
|
|