We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac0b48 commit 07ecd0fCopy full SHA for 07ecd0f
compose.yml
@@ -163,9 +163,13 @@ services:
163
hard: -1
164
ports:
165
- 9200
166
- - 9600
+ - 9600
167
healthcheck:
168
- test: test $$(curl -uadmin:$${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-!ChangeMe0!} -k --write-out %{http_code} --fail --silent --output /dev/null https://localhost:9200/_cluster/health?wait_for_status=green&timeout=5s) -eq 200
+ test: >
169
+ bash -c "curl -uadmin:\${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-!ChangeMe0!}
170
+ -k --silent --fail --write-out '%{http_code}' --max-time 4
171
+ https://localhost:9200/_cluster/health |
172
+ grep -q '\"status\":\"green\"'"
173
interval: 10s
174
timeout: 5s
175
retries: 20
0 commit comments