Skip to content

Commit dfd1775

Browse files
botisSmilePierreGauthier
authored andcommitted
Fix(#1331658): Zombie processes related to the healthcheck on container search
1 parent 0393e76 commit dfd1775

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,13 @@ services:
159159
hard: -1
160160
ports:
161161
- 9200
162-
- 9600
162+
- 9600
163163
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
164+
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\"'"
165169
interval: 10s
166170
timeout: 5s
167171
retries: 20

0 commit comments

Comments
 (0)