Browse Source

elasticsearch healthcheck timeout env var

Marek Víger 3 năm trước cách đây
mục cha
commit
859432f16e

+ 1 - 1
compose/bin/setup

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

+ 1 - 0
compose/env/elasticsearch.env

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