From debecf1b8d0d4a32e739f765276e0123a8cf9bd0 Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Llorente Date: Mon, 2 Apr 2018 15:03:59 -0700 Subject: [PATCH] Adding comments about the external ports in docker-compose.override.yml saying that a production environment your should remove the external ports kept here for microservice debugging purposes. The API Gateway redirects and access through each microservice's internal port (80). --- docker-compose.override.yml | 51 +++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index e656f753f..ac22fa4e7 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -24,7 +24,8 @@ services: - UseLoadTest=${USE_LOADTEST:-False} ports: - - "5103:80" + - "5103:80" # Important: In a production environment your should remove the external port (5103) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). catalog.api: environment: @@ -43,7 +44,8 @@ services: - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY} - OrchestratorType=${ORCHESTRATOR_TYPE} ports: - - "5101:80" + - "5101:80" # Important: In a production environment your should remove the external port (5101) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). identity.api: environment: @@ -63,7 +65,8 @@ services: - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY} - OrchestratorType=${ORCHESTRATOR_TYPE} ports: - - "5105:80" + - "5105:80" # Important: In a production environment your should remove the external port (5105) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). ordering.api: environment: @@ -83,7 +86,8 @@ services: - OrchestratorType=${ORCHESTRATOR_TYPE} - UseLoadTest=${USE_LOADTEST:-False} ports: - - "5102:80" + - "5102:80" # Important: In a production environment your should remove the external port (5102) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). marketing.api: environment: @@ -107,7 +111,8 @@ services: - OrchestratorType=${ORCHESTRATOR_TYPE} - UseLoadTest=${USE_LOADTEST:-False} ports: - - "5110:80" + - "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). webspa: environment: @@ -126,7 +131,7 @@ services: - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY} - OrchestratorType=${ORCHESTRATOR_TYPE} ports: - - "5104:80" + - "5104:80" webmvc: environment: @@ -177,7 +182,8 @@ services: - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY} - OrchestratorType=${ORCHESTRATOR_TYPE} ports: - - "5108:80" + - "5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). locations.api: environment: @@ -195,34 +201,36 @@ services: - OrchestratorType=${ORCHESTRATOR_TYPE} - UseLoadTest=${USE_LOADTEST:-False} ports: - - "5109:80" + - "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). sql.data: environment: - SA_PASSWORD=Pass@word - ACCEPT_EULA=Y ports: - - "5433:1433" + - "5433:1433" # Important: In a production environment your should remove the external port nosql.data: ports: - - "27017:27017" + - "27017:27017" # Important: In a production environment your should remove the external port basket.data: ports: - - "6379:6379" + - "6379:6379" # Important: In a production environment your should remove the external port rabbitmq: ports: - - "15672:15672" - - "5672:5672" + - "15672:15672" # Important: In a production environment your should remove the external port + - "5672:5672" # Important: In a production environment your should remove the external port mobileshoppingapigw: environment: - ASPNETCORE_ENVIRONMENT=Development - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110. ports: - - "5200:80" + - "5200:80" # Important: In a production environment your should remove the external port (5200) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). volumes: - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration @@ -231,7 +239,8 @@ services: - ASPNETCORE_ENVIRONMENT=Development - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110. ports: - - "5201:80" + - "5201:80" # Important: In a production environment your should remove the external port (5201) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). volumes: - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration @@ -240,7 +249,8 @@ services: - ASPNETCORE_ENVIRONMENT=Development - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110. ports: - - "5202:80" + - "5202:80" # Important: In a production environment your should remove the external port (5202) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). volumes: - ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration @@ -249,7 +259,8 @@ services: - ASPNETCORE_ENVIRONMENT=Development - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110. ports: - - "5203:80" + - "5203:80" # Important: In a production environment your should remove the external port (5203) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). volumes: - ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration @@ -261,7 +272,8 @@ services: - urls__orders=http://ordering.api - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110. ports: - - "5120:80" + - "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). webshoppingagg: environment: @@ -271,4 +283,5 @@ services: - urls__orders=http://ordering.api - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110. ports: - - "5121:80" \ No newline at end of file + - "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes. + # The API Gateway redirects and access through the internal port (80). \ No newline at end of file