Skip to content

Commit

Permalink
rework health check
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip authored Nov 1, 2024
1 parent 7c39b04 commit 3b4a2b5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions compose.openSearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ services:
- "plugins.security.ssl.http.enabled=${SLL_HTTP_ENABLED:-false}"
- "plugins.security.disabled=true"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD}"
options: >-
--health-cmd "curl -f -u admin:${OPENSEARCH_INITIAL_ADMIN_PASSWORD} http://localhost:9200/_cluster/health || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 10
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- "opensearch-data1:/usr/share/opensearch/data"
networks:
Expand Down

0 comments on commit 3b4a2b5

Please sign in to comment.