Quellcode durchsuchen

elasticsearch healthcheck timeout env var

Marek Víger vor 3 Jahren
Ursprung
Commit
859432f16e
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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
 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