Skip to content

Commit

Permalink
Merge pull request #3193 from OpenNeuroOrg/elastic-healthcheck
Browse files Browse the repository at this point in the history
adding elasticsearch healthcheck to docker compose - provided by NH
  • Loading branch information
nellh authored Nov 6, 2024
2 parents 0d7bdd7 + b24bfe0 commit bf411eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ services:
xpack.security.enabled: false
xpack.security.enrollment.enabled: false
ES_JAVA_OPTS: "-Xms750m -Xmx750m"
healthcheck:
test: "curl -s -f http://localhost:9200 || exit 1"
interval: 10s
timeout: 5s
retries: 3
ports:
- "9200:9200"
- "9300:9300"

0 comments on commit bf411eb

Please sign in to comment.