31 lines
497 B
YAML
31 lines
497 B
YAML
|
version: '3.7'
|
||
|
services:
|
||
|
prometheus:
|
||
|
image: 'prom/prometheus'
|
||
|
ports:
|
||
|
- '9090:9090'
|
||
|
volumes:
|
||
|
- 'prometheus-data:/prometheus'
|
||
|
networks:
|
||
|
- net
|
||
|
|
||
|
grafana:
|
||
|
image: 'grafana/grafana'
|
||
|
ports:
|
||
|
- '3000:3000'
|
||
|
volumes:
|
||
|
- 'grafana-storage:/var/lib/grafana'
|
||
|
- 'grafana-provisioning:/etc/grafana/provisioning'
|
||
|
networks:
|
||
|
- net
|
||
|
|
||
|
networks:
|
||
|
net:
|
||
|
driver: bridge
|
||
|
|
||
|
volumes:
|
||
|
grafana-provisioning:
|
||
|
grafana-storage:
|
||
|
prometheus-data:
|
||
|
|