소스 검색

elasticsearch healthcheck timeout env var

Marek Víger 3 년 전
부모
커밋
859432f16e
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compose/bin/setup
  2. 1 0
      compose/env/elasticsearch.env

+ 1 - 1
compose/bin/setup

@@ -22,7 +22,7 @@ bin/clinotty chmod u+x bin/magento
 rm -rf src && mkdir src
 
 echo "Waiting for connection to Elasticsearch..."
-bin/clinotty timeout 100 bash -c "
+bin/clinotty timeout $ES_HEALTHCHECK_TIMEOUT bash -c "
     until curl --silent --output /dev/null http://$ES_HOST:$ES_PORT/_cat/health?h=st; do
         printf '.'
         sleep 2

+ 1 - 0
compose/env/elasticsearch.env

@@ -1,2 +1,3 @@
 ES_HOST=elasticsearch
 ES_PORT=9200
+ES_HEALTHCHECK_TIMEOUT=100