Skip to content

Commit 2fb1349

Browse files
committed
Merge branch 'bff' into dev
2 parents 885703c + ee113b2 commit 2fb1349

153 files changed

Lines changed: 5901 additions & 2434 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ hosts
1313
LICENSE
1414
*.testsettings
1515
vsts-docs
16+
test
1617
ServiceFabric
1718
readme
1819
k8s
@@ -29,4 +30,5 @@ cli-linux
2930
**/bower_components/
3031
**/wwwroot/lib/
3132
global.json
33+
**/appsettings.localhost.json
3234
src/Web/WebSPA/wwwroot/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,4 @@ pub/
260260
/src/Web/WebMVC/wwwroot/lib
261261
/src/Web/WebMVC/wwwroot/css/site.min.css
262262
**/.kube/**
263+
.mfractor

docker-compose.dcproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<DockerServiceName>webmvc</DockerServiceName>
88
<DockerTargetOS>Linux</DockerTargetOS>
99
<ProjectVersion>2.1</ProjectVersion>
10+
<DockerLaunchAction>LaunchBrowser</DockerLaunchAction>
1011
</PropertyGroup>
1112
<ItemGroup>
1213
<None Include=".dockerignore" />

docker-compose.override.yml

Lines changed: 83 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)