Skip to content

Commit

Permalink
Add elasticsearch healtcheck and make search depend on it
Browse files Browse the repository at this point in the history
  • Loading branch information
willaerk committed Sep 16, 2024
1 parent 05f24d9 commit d154b42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
uitdatabank-search:
aliases:
- search.uitdatabank.dev
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
image: public.ecr.aws/y2o7k5u2/udb3/elasticsearch:5.3.3
container_name: es.uitdatabank
Expand All @@ -24,6 +27,11 @@ services:
uitdatabank-search:
aliases:
- elasticsearch.uitdatabank.dev
healthcheck:
#test: 'curl --fail http://127.0.0.1:9200/_cluster/health?wait_for_status=green&timeout=1s'
test: 'wget -o /dev/null -T 3 http://127.0.0.1:9200/_cluster/health'
interval: 5s
timeout: 4s

networks:
uitdatabank-search:
Expand Down

0 comments on commit d154b42

Please sign in to comment.