1
0
mirror of https://github.com/docker/awesome-compose.git synced 2025-07-04 21:13:54 +00:00
awesome-compose/prometheus-grafana/docker-compose.yml
Amin Vakil 93ff67d258
Add restart policy (#53)
It's almost no possible monitoring solution which it's OK to stop monitoring server itself upon a problem.

Signed-off-by: Amin Vakil <info@aminvakil.com>
2020-04-10 09:30:54 +02:00

29 lines
629 B
YAML

version: "3.7"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
restart:
- unless-stopped
volumes:
- ./prometheus:/etc/prometheus
- prom_data:/prometheus
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
restart:
- unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./grafana:/etc/grafana/provisioning/datasources
volumes:
prom_data: