code-examples/2024/12/grafana_demo1/app.yaml

31 lines
497 B
YAML
Raw Normal View History

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: