We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0393e76 commit dfd1775Copy full SHA for dfd1775
compose.yml
@@ -159,9 +159,13 @@ services:
159
hard: -1
160
ports:
161
- 9200
162
- - 9600
+ - 9600
163
healthcheck:
164
- 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: >
165
+ bash -c "curl -uadmin:\${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-!ChangeMe0!}
166
+ -k --silent --fail --write-out '%{http_code}' --max-time 4
167
+ https://localhost:9200/_cluster/health |
168
+ grep -q '\"status\":\"green\"'"
169
interval: 10s
170
timeout: 5s
171
retries: 20
0 commit comments