Features: 1) Add profiles: ["monitoring"] to multiple exporters in docker-compose.yml; 2) Include health check dependency for database service in docker-compose.yml.
Fixes: n/a; Extra: n/a;
This commit is contained in:
parent
ae1d16edda
commit
7a3151e2a1
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ services:
|
|||
container_name: postgres_exporter
|
||||
image: quay.io/prometheuscommunity/postgres-exporter:v0.17.0
|
||||
restart: always
|
||||
profiles: ["monitoring"]
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
|
|
@ -76,6 +77,7 @@ services:
|
|||
container_name: redis_exporter
|
||||
image: oliver006/redis_exporter:v1.73.0
|
||||
restart: always
|
||||
profiles: ["monitoring"]
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
|
|
@ -111,6 +113,7 @@ services:
|
|||
container_name: elasticsearch_exporter
|
||||
image: quay.io/prometheuscommunity/elasticsearch-exporter:v1.9.0
|
||||
restart: always
|
||||
profiles: ["monitoring"]
|
||||
env_file:
|
||||
- .env
|
||||
command:
|
||||
|
|
@ -194,6 +197,8 @@ services:
|
|||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
logging: *default-logging
|
||||
|
||||
prometheus:
|
||||
|
|
|
|||
Loading…
Reference in a new issue