Skip to content

Commit b24bfe0

Browse files
committed
adding elasticsearch healthcheck to docker compose - provided by NH
1 parent 0d7bdd7 commit b24bfe0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ services:
142142
xpack.security.enabled: false
143143
xpack.security.enrollment.enabled: false
144144
ES_JAVA_OPTS: "-Xms750m -Xmx750m"
145+
healthcheck:
146+
test: "curl -s -f http://localhost:9200 || exit 1"
147+
interval: 10s
148+
timeout: 5s
149+
retries: 3
145150
ports:
146151
- "9200:9200"
147152
- "9300:9300"

0 commit comments

Comments
 (0)