grafana docker image
grafana docker compose
version: "3.8"
services:
grafana:
image: grafana/grafana-oss:9.5.2
container_name: grafana
ports:
- "3000:3000"
volumes:
- "grafana_volume:/var/lib/grafana"
- "./grafana.ini:/etc/grafana/grafana.ini"
restart: always
privileged: true
volumes:
grafana_volume:
external: true
prometheus docker image
prometheus docker compose
version: "3.8"
services:
prometheus:
image: prom/prometheus:v2.41.0
container_name: prometheus
ports:
- "9090:9090"
volumes:
- "prometheus_volume:/prometheus"
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
restart: always
volumes:
prometheus_volume:
external: true