monitoring - containerized Prometheus and Grafana on HypriotOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
558 B

---
version: '2.1'
volumes:
tsdb:
name: prometheus-tsdb
config:
name: grafana-config
data:
name: grafana-data
services:
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- tsdb:/prometheus:rw
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana
ports:
- 3000:3000
volumes:
- config:/etc/grafana:rw
- data:/var/lib/grafana:rw