@@ -24,14 +24,15 @@ 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 :
3132 - ASPNETCORE_ENVIRONMENT=Development
3233 - ASPNETCORE_URLS=http://0.0.0.0:80
3334 - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
34- - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5101 /api/v1/catalog/items/[0]/pic/} # Local: You need to open your local dev-machine firewall at range 5100-5110.
35+ - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5202 /api/v1/c /catalog/items/[0]/pic/} # Local: You need to open your local dev-machine firewall at range 5100-5110.
3536 - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
3637 - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
3738 - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
@@ -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 :
@@ -57,11 +59,13 @@ services:
5759 - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
5860 - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
5961 - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
62+ - MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
63+ - WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
6064 - UseCustomizationData=True
6165 - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
6266 - OrchestratorType=${ORCHESTRATOR_TYPE}
6367 ports :
64- - " 5105:80"
68+ - " 5105:80"
6569
6670 ordering.api :
6771 environment :
@@ -81,25 +85,8 @@ services:
8185 - OrchestratorType=${ORCHESTRATOR_TYPE}
8286 - UseLoadTest=${USE_LOADTEST:-False}
8387 ports :
84- - " 5102:80"
85-
86- ordering.backgroundtasks :
87- environment :
88- - ASPNETCORE_ENVIRONMENT=Development
89- - ASPNETCORE_URLS=http://0.0.0.0:80
90- - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
91- - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
92- - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
93- - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
94- - UseCustomizationData=True
95- - AzureServiceBusEnabled=False
96- - CheckUpdateTime=30000
97- - GracePeriodTime=1
98- - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
99- - OrchestratorType=${ORCHESTRATOR_TYPE}
100- - UseLoadTest=${USE_LOADTEST:-False}
101- ports :
102- - " 5111:80"
88+ - " 5102:80" # Important: In a production environment your should remove the external port (5102) kept here for microservice debugging purposes.
89+ # The API Gateway redirects and access through the internal port (80).
10390
10491 marketing.api :
10592 environment :
@@ -123,18 +110,16 @@ services:
123110 - OrchestratorType=${ORCHESTRATOR_TYPE}
124111 - UseLoadTest=${USE_LOADTEST:-False}
125112 ports :
126- - " 5110:80"
113+ - " 5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
114+ # The API Gateway redirects and access through the internal port (80).
127115
128116 webspa :
129117 environment :
130118 - ASPNETCORE_ENVIRONMENT=Development
131119 - ASPNETCORE_URLS=http://0.0.0.0:80
132- - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
133- - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
134120 - IdentityUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105 # Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
135- - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
136- - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
137- - LocationsUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
121+ - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
122+ - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
138123 - CatalogUrlHC=http://catalog.api/hc
139124 - OrderingUrlHC=http://ordering.api/hc
140125 - IdentityUrlHC=http://identity.api/hc # Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
@@ -145,18 +130,15 @@ services:
145130 - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
146131 - OrchestratorType=${ORCHESTRATOR_TYPE}
147132 ports :
148- - " 5104:80"
133+ - " 5104:80"
149134
150135 webmvc :
151136 environment :
152137 - ASPNETCORE_ENVIRONMENT=Development
153138 - ASPNETCORE_URLS=http://0.0.0.0:80
154- - CatalogUrl=http://catalog.api
155- - OrderingUrl=http://ordering.api
156- - BasketUrl=http://basket.api
157- - LocationsUrl=http://locations.api
139+ - PurchaseUrl=http://webshoppingapigw
158140 - IdentityUrl=http://10.0.75.1:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
159- - MarketingUrl=http://marketing.api
141+ - MarketingUrl=http://webmarketingapigw
160142 - CatalogUrlHC=http://catalog.api/hc
161143 - OrderingUrlHC=http://ordering.api/hc
162144 - IdentityUrlHC=http://identity.api/hc # Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
@@ -199,7 +181,8 @@ services:
199181 - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
200182 - OrchestratorType=${ORCHESTRATOR_TYPE}
201183 ports :
202- - " 5108:80"
184+ - " 5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
185+ # The API Gateway redirects and access through the internal port (80).
203186
204187 locations.api :
205188 environment :
@@ -217,25 +200,83 @@ services:
217200 - OrchestratorType=${ORCHESTRATOR_TYPE}
218201 - UseLoadTest=${USE_LOADTEST:-False}
219202 ports :
220- - " 5109:80"
203+ - " 5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
204+ # The API Gateway redirects and access through the internal port (80).
221205
222206 sql.data :
223207 environment :
224208 - SA_PASSWORD=Pass@word
225209 - ACCEPT_EULA=Y
226210 ports :
227- - " 5433:1433"
211+ - " 5433:1433" # Important: In a production environment your should remove the external port
228212
229213 nosql.data :
230214 ports :
231- - " 27017:27017"
215+ - " 27017:27017" # Important: In a production environment your should remove the external port
232216
233217 basket.data :
234218 ports :
235- - " 6379:6379"
219+ - " 6379:6379" # Important: In a production environment your should remove the external port
236220
237221 rabbitmq :
238222 ports :
239- - " 15672:15672"
240- - " 5672:5672"
223+ - " 15672:15672" # Important: In a production environment your should remove the external port
224+ - " 5672:5672" # Important: In a production environment your should remove the external port
225+
226+ mobileshoppingapigw :
227+ environment :
228+ - ASPNETCORE_ENVIRONMENT=Development
229+ - IdentityUrl=http://identity.api # Local: You need to open your local dev-machine firewall at range 5100-5110.
230+ ports :
231+ - " 5200:80"
232+ volumes :
233+ - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
234+
235+ mobilemarketingapigw :
236+ environment :
237+ - ASPNETCORE_ENVIRONMENT=Development
238+ - IdentityUrl=http://identity.api # Local: You need to open your local dev-machine firewall at range 5100-5110.
239+ ports :
240+ - " 5201:80"
241+ volumes :
242+ - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
243+
244+ webshoppingapigw :
245+ environment :
246+ - ASPNETCORE_ENVIRONMENT=Development
247+ - IdentityUrl=http://identity.api # Local: You need to open your local dev-machine firewall at range 5100-5110.
248+ ports :
249+ - " 5202:80"
250+ volumes :
251+ - ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
241252
253+ webmarketingapigw :
254+ environment :
255+ - ASPNETCORE_ENVIRONMENT=Development
256+ - IdentityUrl=http://identity.api # Local: You need to open your local dev-machine firewall at range 5100-5110.
257+ ports :
258+ - " 5203:80"
259+ volumes :
260+ - ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
261+
262+ mobileshoppingagg :
263+ environment :
264+ - ASPNETCORE_ENVIRONMENT=Development
265+ - urls__basket=http://basket.api
266+ - urls__catalog=http://catalog.api
267+ - urls__orders=http://ordering.api
268+ - urls__identity=http://identity.api # Local: You need to open your local dev-machine firewall at range 5100-5110.
269+ ports :
270+ - " 5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
271+ # The API Gateway redirects and access through the internal port (80).
272+
273+ webshoppingagg :
274+ environment :
275+ - ASPNETCORE_ENVIRONMENT=Development
276+ - urls__basket=http://basket.api
277+ - urls__catalog=http://catalog.api
278+ - urls__orders=http://ordering.api
279+ - urls__identity=http://identity.api # Local: You need to open your local dev-machine firewall at range 5100-5110.
280+ ports :
281+ - " 5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
282+ # The API Gateway redirects and access through the internal port (80).
0 commit comments