Commit b606be50 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Merge branch 'dev' into 'master'

Corrije sintaxis de healthcheck

See merge request redmic-project/elastic/elasticsearch!32
parents 75e7cbbe b2c3b9df
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@ services:
      - ELASTIC_USER_ROLE
    healthcheck:
      test: >
        status=$(curl --write-out %{http_code} --silent --output /dev/null -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}"
          localhost:{PORT1}/_cluster/health);
        [ "${status}" -eq "200" ] || [  "${status}" -eq "401" ]
        status=$$(curl --write-out %{http_code} --silent --output /dev/null -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}"
          localhost:${PORT1}/_cluster/health);
        [ "$${status}" -eq "200" ] || [ "$${status}" -eq "401" ]
      timeout: 10s
      retries: 3
      start_period: 2m
@@ -46,9 +46,9 @@ services:
      - ELASTIC_USER_ROLE
    healthcheck:
      test: >
        status=$(curl --write-out %{http_code} --silent --output /dev/null -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}"
          localhost:{PORT1}/_cluster/health);
        [ "${status}" -eq "200" ] || [  "${status}" -eq "401" ]
        status=$$(curl --write-out %{http_code} --silent --output /dev/null -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}"
          localhost:${PORT1}/_cluster/health);
        [ "$${status}" -eq "200" ] || [ "$${status}" -eq "401" ]
      interval: 30s
      timeout: 10s
      retries: 3
@@ -73,9 +73,9 @@ services:
      - ELASTIC_USER_ROLE
    healthcheck:
      test: >
        status=$(curl --write-out %{http_code} --silent --output /dev/null -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}"
          localhost:{PORT1}/_cluster/health);
        [ "${status}" -eq "200" ] || [  "${status}" -eq "401" ]
        status=$$(curl --write-out %{http_code} --silent --output /dev/null -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}"
          localhost:${PORT1}/_cluster/health);
        [ "$${status}" -eq "200" ] || [ "$${status}" -eq "401" ]
      interval: 30s
      timeout: 10s
      retries: 3