Skip to content

Commit

Permalink
fix(docker): docker compose health checks port fix (#9326)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Nov 29, 2023
1 parent 2031bd4 commit 3a84037
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose-with-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
dockerfile: docker/datahub-gms/Dockerfile
env_file: ./datahub-gms/env/docker.cassandra.env
healthcheck:
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
start_period: 20s
interval: 1s
retries: 20
Expand Down
10 changes: 5 additions & 5 deletions docker/docker-compose-without-neo4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
dockerfile: docker/datahub-gms/Dockerfile
env_file: datahub-gms/env/docker-without-neo4j.env
healthcheck:
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
start_period: 90s
interval: 1s
retries: 3
Expand Down Expand Up @@ -119,7 +119,7 @@ services:
limits:
memory: 1G
healthcheck:
test: curl -sS --fail http://elasticsearch:$${DATAHUB_MAPPED_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
start_period: 20s
interval: 1s
retries: 3
Expand All @@ -134,7 +134,7 @@ services:
- ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}:8081
env_file: schema-registry/env/docker.env
healthcheck:
test: nc -z schema-registry ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}
test: nc -z schema-registry ${DATAHUB_SCHEMA_REGISTRY_PORT:-8081}
start_period: 60s
interval: 1s
retries: 3
Expand All @@ -150,7 +150,7 @@ services:
- ${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}:9092
env_file: broker/env/docker.env
healthcheck:
test: nc -z broker $${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}
test: nc -z broker $${DATAHUB_KAFKA_BROKER_PORT:-9092}
start_period: 60s
interval: 1s
retries: 5
Expand All @@ -168,7 +168,7 @@ services:
- ${DATAHUB_MAPPED_ZK_PORT:-2181}:2181
env_file: zookeeper/env/docker.env
healthcheck:
test: echo srvr | nc zookeeper $${DATAHUB_MAPPED_ZK_PORT:-2181}
test: echo srvr | nc zookeeper $${DATAHUB_ZK_PORT:-2181}
start_period: 30s
interval: 5s
retries: 3
Expand Down
12 changes: 6 additions & 6 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
context: ../
dockerfile: docker/datahub-gms/Dockerfile
healthcheck:
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
start_period: 90s
interval: 1s
retries: 3
Expand Down Expand Up @@ -124,7 +124,7 @@ services:
limits:
memory: 1G
healthcheck:
test: curl -sS --fail http://elasticsearch:$${DATAHUB_MAPPED_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
start_period: 20s
interval: 1s
retries: 3
Expand All @@ -140,7 +140,7 @@ services:
- ${DATAHUB_MAPPED_NEO4J_BOLT_PORT:-7687}:7687
env_file: neo4j/env/docker.env
healthcheck:
test: wget http://neo4j:$${DATAHUB_MAPPED_NEO4J_HTTP_PORT:-7474}
test: wget http://neo4j:$${DATAHUB_NEO4J_HTTP_PORT:-7474}
start_period: 5s
interval: 1s
retries: 5
Expand All @@ -155,7 +155,7 @@ services:
- ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}:8081
env_file: schema-registry/env/docker.env
healthcheck:
test: nc -z schema-registry ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}
test: nc -z schema-registry ${DATAHUB_SCHEMA_REGISTRY_PORT:-8081}
start_period: 60s
interval: 1s
retries: 3
Expand All @@ -171,7 +171,7 @@ services:
- ${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}:9092
env_file: broker/env/docker.env
healthcheck:
test: nc -z broker $${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}
test: nc -z broker $${DATAHUB_KAFKA_BROKER_PORT:-9092}
start_period: 60s
interval: 1s
retries: 5
Expand All @@ -189,7 +189,7 @@ services:
- ${DATAHUB_MAPPED_ZK_PORT:-2181}:2181
env_file: zookeeper/env/docker.env
healthcheck:
test: echo srvr | nc zookeeper $${DATAHUB_MAPPED_ZK_PORT:-2181}
test: echo srvr | nc zookeeper $${DATAHUB_ZK_PORT:-2181}
start_period: 10s
interval: 5s
retries: 3
Expand Down
12 changes: 6 additions & 6 deletions docker/quickstart/docker-compose-m1.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
interval: 1s
retries: 5
start_period: 60s
test: nc -z broker $${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}
test: nc -z broker $${DATAHUB_KAFKA_BROKER_PORT:-9092}
timeout: 5s
hostname: broker
image: confluentinc/cp-kafka:7.4.0
Expand Down Expand Up @@ -111,7 +111,7 @@ services:
interval: 1s
retries: 3
start_period: 90s
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
timeout: 5s
hostname: datahub-gms
image: ${DATAHUB_GMS_IMAGE:-linkedin/datahub-gms}:${DATAHUB_VERSION:-head}
Expand Down Expand Up @@ -171,7 +171,7 @@ services:
interval: 1s
retries: 3
start_period: 20s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_MAPPED_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
timeout: 5s
hostname: elasticsearch
image: ${DATAHUB_SEARCH_IMAGE:-elasticsearch}:${DATAHUB_SEARCH_TAG:-7.10.1}
Expand Down Expand Up @@ -258,7 +258,7 @@ services:
interval: 1s
retries: 5
start_period: 5s
test: wget http://neo4j:$${DATAHUB_MAPPED_NEO4J_HTTP_PORT:-7474}
test: wget http://neo4j:$${DATAHUB_NEO4J_HTTP_PORT:-7474}
timeout: 5s
hostname: neo4j
image: neo4j/neo4j-arm64-experimental:4.0.6-arm64
Expand All @@ -280,7 +280,7 @@ services:
interval: 1s
retries: 3
start_period: 60s
test: nc -z schema-registry ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}
test: nc -z schema-registry ${DATAHUB_SCHEMA_REGISTRY_PORT:-8081}
timeout: 5s
hostname: schema-registry
image: confluentinc/cp-schema-registry:7.4.0
Expand All @@ -295,7 +295,7 @@ services:
interval: 5s
retries: 3
start_period: 10s
test: echo srvr | nc zookeeper $${DATAHUB_MAPPED_ZK_PORT:-2181}
test: echo srvr | nc zookeeper $${DATAHUB_ZK_PORT:-2181}
timeout: 5s
hostname: zookeeper
image: confluentinc/cp-zookeeper:7.4.0
Expand Down
10 changes: 5 additions & 5 deletions docker/quickstart/docker-compose-without-neo4j-m1.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
interval: 1s
retries: 5
start_period: 60s
test: nc -z broker $${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}
test: nc -z broker $${DATAHUB_KAFKA_BROKER_PORT:-9092}
timeout: 5s
hostname: broker
image: confluentinc/cp-kafka:7.4.0
Expand Down Expand Up @@ -106,7 +106,7 @@ services:
interval: 1s
retries: 3
start_period: 90s
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
timeout: 5s
hostname: datahub-gms
image: ${DATAHUB_GMS_IMAGE:-linkedin/datahub-gms}:${DATAHUB_VERSION:-head}
Expand Down Expand Up @@ -164,7 +164,7 @@ services:
interval: 1s
retries: 3
start_period: 20s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_MAPPED_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
timeout: 5s
hostname: elasticsearch
image: ${DATAHUB_SEARCH_IMAGE:-elasticsearch}:${DATAHUB_SEARCH_TAG:-7.10.1}
Expand Down Expand Up @@ -253,7 +253,7 @@ services:
interval: 1s
retries: 3
start_period: 60s
test: nc -z schema-registry ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}
test: nc -z schema-registry ${DATAHUB_SCHEMA_REGISTRY_PORT:-8081}
timeout: 5s
hostname: schema-registry
image: confluentinc/cp-schema-registry:7.4.0
Expand All @@ -268,7 +268,7 @@ services:
interval: 5s
retries: 3
start_period: 30s
test: echo srvr | nc zookeeper $${DATAHUB_MAPPED_ZK_PORT:-2181}
test: echo srvr | nc zookeeper $${DATAHUB_ZK_PORT:-2181}
timeout: 5s
hostname: zookeeper
image: confluentinc/cp-zookeeper:7.4.0
Expand Down
10 changes: 5 additions & 5 deletions docker/quickstart/docker-compose-without-neo4j.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
interval: 1s
retries: 5
start_period: 60s
test: nc -z broker $${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}
test: nc -z broker $${DATAHUB_KAFKA_BROKER_PORT:-9092}
timeout: 5s
hostname: broker
image: confluentinc/cp-kafka:7.4.0
Expand Down Expand Up @@ -106,7 +106,7 @@ services:
interval: 1s
retries: 3
start_period: 90s
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
timeout: 5s
hostname: datahub-gms
image: ${DATAHUB_GMS_IMAGE:-linkedin/datahub-gms}:${DATAHUB_VERSION:-head}
Expand Down Expand Up @@ -164,7 +164,7 @@ services:
interval: 1s
retries: 3
start_period: 20s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_MAPPED_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
timeout: 5s
hostname: elasticsearch
image: ${DATAHUB_SEARCH_IMAGE:-elasticsearch}:${DATAHUB_SEARCH_TAG:-7.10.1}
Expand Down Expand Up @@ -253,7 +253,7 @@ services:
interval: 1s
retries: 3
start_period: 60s
test: nc -z schema-registry ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}
test: nc -z schema-registry ${DATAHUB_SCHEMA_REGISTRY_PORT:-8081}
timeout: 5s
hostname: schema-registry
image: confluentinc/cp-schema-registry:7.4.0
Expand All @@ -268,7 +268,7 @@ services:
interval: 5s
retries: 3
start_period: 30s
test: echo srvr | nc zookeeper $${DATAHUB_MAPPED_ZK_PORT:-2181}
test: echo srvr | nc zookeeper $${DATAHUB_ZK_PORT:-2181}
timeout: 5s
hostname: zookeeper
image: confluentinc/cp-zookeeper:7.4.0
Expand Down
12 changes: 6 additions & 6 deletions docker/quickstart/docker-compose.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
interval: 1s
retries: 5
start_period: 60s
test: nc -z broker $${DATAHUB_MAPPED_KAFKA_BROKER_PORT:-9092}
test: nc -z broker $${DATAHUB_KAFKA_BROKER_PORT:-9092}
timeout: 5s
hostname: broker
image: confluentinc/cp-kafka:7.4.0
Expand Down Expand Up @@ -111,7 +111,7 @@ services:
interval: 1s
retries: 3
start_period: 90s
test: curl -sS --fail http://datahub-gms:${DATAHUB_MAPPED_GMS_PORT:-8080}/health
test: curl -sS --fail http://datahub-gms:${DATAHUB_GMS_PORT:-8080}/health
timeout: 5s
hostname: datahub-gms
image: ${DATAHUB_GMS_IMAGE:-linkedin/datahub-gms}:${DATAHUB_VERSION:-head}
Expand Down Expand Up @@ -171,7 +171,7 @@ services:
interval: 1s
retries: 3
start_period: 20s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_MAPPED_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
test: curl -sS --fail http://elasticsearch:$${DATAHUB_ELASTIC_PORT:-9200}/_cluster/health?wait_for_status=yellow&timeout=0s
timeout: 5s
hostname: elasticsearch
image: ${DATAHUB_SEARCH_IMAGE:-elasticsearch}:${DATAHUB_SEARCH_TAG:-7.10.1}
Expand Down Expand Up @@ -258,7 +258,7 @@ services:
interval: 1s
retries: 5
start_period: 5s
test: wget http://neo4j:$${DATAHUB_MAPPED_NEO4J_HTTP_PORT:-7474}
test: wget http://neo4j:$${DATAHUB_NEO4J_HTTP_PORT:-7474}
timeout: 5s
hostname: neo4j
image: neo4j:4.4.9-community
Expand All @@ -280,7 +280,7 @@ services:
interval: 1s
retries: 3
start_period: 60s
test: nc -z schema-registry ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}
test: nc -z schema-registry ${DATAHUB_SCHEMA_REGISTRY_PORT:-8081}
timeout: 5s
hostname: schema-registry
image: confluentinc/cp-schema-registry:7.4.0
Expand All @@ -295,7 +295,7 @@ services:
interval: 5s
retries: 3
start_period: 10s
test: echo srvr | nc zookeeper $${DATAHUB_MAPPED_ZK_PORT:-2181}
test: echo srvr | nc zookeeper $${DATAHUB_ZK_PORT:-2181}
timeout: 5s
hostname: zookeeper
image: confluentinc/cp-zookeeper:7.4.0
Expand Down

0 comments on commit 3a84037

Please sign in to comment.