Add persistent storage for Prometheus
This commit is contained in:
parent
4b702a7762
commit
874ada9e43
@ -2,7 +2,7 @@ version: '3'
|
||||
services:
|
||||
grafana:
|
||||
image: grafana/grafana-oss:latest
|
||||
container_name: grafana_grafana
|
||||
container_name: monitoring_grafana
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- monitoring
|
||||
@ -25,7 +25,8 @@ services:
|
||||
ports:
|
||||
- 9090:9090
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ${DOCKER_DATA}/prometheus:/prometheus
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
|
Loading…
Reference in New Issue
Block a user