Skip to content

Commit debecf1

Browse files
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).
1 parent 5fd4121 commit debecf1

1 file changed

Lines changed: 32 additions & 19 deletions

File tree

docker-compose.override.yml

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ services:
2424
- UseLoadTest=${USE_LOADTEST:-False}
2525

2626
ports:
27-
- "5103:80"
27+
- "5103:80" # Important: In a production environment your should remove the external port (5103) kept here for microservice debugging purposes.
28+
# The API Gateway redirects and access through the internal port (80).
2829

2930
catalog.api:
3031
environment:
@@ -43,7 +44,8 @@ services:
4344
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
4445
- OrchestratorType=${ORCHESTRATOR_TYPE}
4546
ports:
46-
- "5101:80"
47+
- "5101:80" # Important: In a production environment your should remove the external port (5101) kept here for microservice debugging purposes.
48+
# The API Gateway redirects and access through the internal port (80).
4749

4850
identity.api:
4951
environment:
@@ -63,7 +65,8 @@ services:
6365
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
6466
- OrchestratorType=${ORCHESTRATOR_TYPE}
6567
ports:
66-
- "5105:80"
68+
- "5105:80" # Important: In a production environment your should remove the external port (5105) kept here for microservice debugging purposes.
69+
# The API Gateway redirects and access through the internal port (80).
6770

6871
ordering.api:
6972
environment:
@@ -83,7 +86,8 @@ services:
8386
- OrchestratorType=${ORCHESTRATOR_TYPE}
8487
- UseLoadTest=${USE_LOADTEST:-False}
8588
ports:
86-
- "5102:80"
89+
- "5102:80" # Important: In a production environment your should remove the external port (5102) kept here for microservice debugging purposes.
90+
# The API Gateway redirects and access through the internal port (80).
8791

8892
marketing.api:
8993
environment:
@@ -107,7 +111,8 @@ services:
107111
- OrchestratorType=${ORCHESTRATOR_TYPE}
108112
- UseLoadTest=${USE_LOADTEST:-False}
109113
ports:
110-
- "5110:80"
114+
- "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
115+
# The API Gateway redirects and access through the internal port (80).
111116

112117
webspa:
113118
environment:
@@ -126,7 +131,7 @@ services:
126131
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
127132
- OrchestratorType=${ORCHESTRATOR_TYPE}
128133
ports:
129-
- "5104:80"
134+
- "5104:80"
130135

131136
webmvc:
132137
environment:
@@ -177,7 +182,8 @@ services:
177182
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
178183
- OrchestratorType=${ORCHESTRATOR_TYPE}
179184
ports:
180-
- "5108:80"
185+
- "5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
186+
# The API Gateway redirects and access through the internal port (80).
181187

182188
locations.api:
183189
environment:
@@ -195,34 +201,36 @@ services:
195201
- OrchestratorType=${ORCHESTRATOR_TYPE}
196202
- UseLoadTest=${USE_LOADTEST:-False}
197203
ports:
198-
- "5109:80"
204+
- "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
205+
# The API Gateway redirects and access through the internal port (80).
199206

200207
sql.data:
201208
environment:
202209
- SA_PASSWORD=Pass@word
203210
- ACCEPT_EULA=Y
204211
ports:
205-
- "5433:1433"
212+
- "5433:1433" # Important: In a production environment your should remove the external port
206213

207214
nosql.data:
208215
ports:
209-
- "27017:27017"
216+
- "27017:27017" # Important: In a production environment your should remove the external port
210217

211218
basket.data:
212219
ports:
213-
- "6379:6379"
220+
- "6379:6379" # Important: In a production environment your should remove the external port
214221

215222
rabbitmq:
216223
ports:
217-
- "15672:15672"
218-
- "5672:5672"
224+
- "15672:15672" # Important: In a production environment your should remove the external port
225+
- "5672:5672" # Important: In a production environment your should remove the external port
219226

220227
mobileshoppingapigw:
221228
environment:
222229
- ASPNETCORE_ENVIRONMENT=Development
223230
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
224231
ports:
225-
- "5200:80"
232+
- "5200:80" # Important: In a production environment your should remove the external port (5200) kept here for microservice debugging purposes.
233+
# The API Gateway redirects and access through the internal port (80).
226234
volumes:
227235
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
228236

@@ -231,7 +239,8 @@ services:
231239
- ASPNETCORE_ENVIRONMENT=Development
232240
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
233241
ports:
234-
- "5201:80"
242+
- "5201:80" # Important: In a production environment your should remove the external port (5201) kept here for microservice debugging purposes.
243+
# The API Gateway redirects and access through the internal port (80).
235244
volumes:
236245
- ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
237246

@@ -240,7 +249,8 @@ services:
240249
- ASPNETCORE_ENVIRONMENT=Development
241250
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
242251
ports:
243-
- "5202:80"
252+
- "5202:80" # Important: In a production environment your should remove the external port (5202) kept here for microservice debugging purposes.
253+
# The API Gateway redirects and access through the internal port (80).
244254
volumes:
245255
- ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
246256

@@ -249,7 +259,8 @@ services:
249259
- ASPNETCORE_ENVIRONMENT=Development
250260
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
251261
ports:
252-
- "5203:80"
262+
- "5203:80" # Important: In a production environment your should remove the external port (5203) kept here for microservice debugging purposes.
263+
# The API Gateway redirects and access through the internal port (80).
253264
volumes:
254265
- ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
255266

@@ -261,7 +272,8 @@ services:
261272
- urls__orders=http://ordering.api
262273
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
263274
ports:
264-
- "5120:80"
275+
- "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
276+
# The API Gateway redirects and access through the internal port (80).
265277

266278
webshoppingagg:
267279
environment:
@@ -271,4 +283,5 @@ services:
271283
- urls__orders=http://ordering.api
272284
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
273285
ports:
274-
- "5121:80"
286+
- "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
287+
# The API Gateway redirects and access through the internal port (80).

0 commit comments

Comments
 (0)