Update docker-compose to always restart all the containers.
This commit is contained in:
parent
52f7487ff1
commit
40c4542d91
|
@ -11,6 +11,7 @@ networks:
|
||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v2.25.2
|
image: prom/prometheus:v2.25.2
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/:/etc/prometheus/
|
- ./prometheus/:/etc/prometheus/
|
||||||
- prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
|
@ -29,6 +30,7 @@ services:
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana
|
image: grafana/grafana
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- grafana_data:/var/lib/grafana
|
- grafana_data:/var/lib/grafana
|
||||||
- ./grafana/provisioning/:/etc/grafana/provisioning/
|
- ./grafana/provisioning/:/etc/grafana/provisioning/
|
||||||
|
@ -50,6 +52,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 9115:9115
|
- 9115:9115
|
||||||
image: prom/blackbox-exporter
|
image: prom/blackbox-exporter
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./blackbox/config:/config
|
- ./blackbox/config:/config
|
||||||
command:
|
command:
|
||||||
|
|
Loading…
Reference in New Issue