Skip to content

Commit 16cae13

Browse files
committed
Organize Dockerfiles to be easier to compare
1 parent 262341c commit 16cae13

3 files changed

Lines changed: 121 additions & 122 deletions

File tree

docker-compose.override.yml

Lines changed: 102 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,46 @@ version: '3.4'
77
# An external IP or DNS name has to be used (instead localhost and the 10.0.75.1 IP) when testing the Web apps and the Xamarin apps from remote machines/devices using the same WiFi, for instance.
88

99
services:
10-
10+
sql.data:
11+
environment:
12+
- SA_PASSWORD=Pass@word
13+
- ACCEPT_EULA=Y
14+
ports:
15+
- "5433:1433" # Important: In a production environment your should remove the external port
16+
17+
nosql.data:
18+
ports:
19+
- "27017:27017" # Important: In a production environment your should remove the external port
20+
21+
basket.data:
22+
ports:
23+
- "6379:6379" # Important: In a production environment your should remove the external port
24+
25+
rabbitmq:
26+
ports:
27+
- "15672:15672" # Important: In a production environment your should remove the external port
28+
- "5672:5672" # Important: In a production environment your should remove the external port
29+
30+
identity.api:
31+
environment:
32+
- ASPNETCORE_ENVIRONMENT=Development
33+
- ASPNETCORE_URLS=http://0.0.0.0:80
34+
- SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
35+
- XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback #localhost do not work for UWP login, so we have to use "external" IP always
36+
- ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
37+
- MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
38+
- LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
39+
- MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
40+
- BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
41+
- OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
42+
- MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
43+
- WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
44+
- UseCustomizationData=True
45+
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
46+
- OrchestratorType=${ORCHESTRATOR_TYPE}
47+
ports:
48+
- "5105:80"
49+
1150
basket.api:
1251
environment:
1352
- ASPNETCORE_ENVIRONMENT=Development
@@ -47,26 +86,6 @@ services:
4786
- "5101:80" # Important: In a production environment your should remove the external port (5101) kept here for microservice debugging purposes.
4887
# The API Gateway redirects and access through the internal port (80).
4988

50-
identity.api:
51-
environment:
52-
- ASPNETCORE_ENVIRONMENT=Development
53-
- ASPNETCORE_URLS=http://0.0.0.0:80
54-
- SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
55-
- XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback #localhost do not work for UWP login, so we have to use "external" IP always
56-
- ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
57-
- MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
58-
- LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
59-
- MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
60-
- BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
61-
- 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
64-
- UseCustomizationData=True
65-
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
66-
- OrchestratorType=${ORCHESTRATOR_TYPE}
67-
ports:
68-
- "5105:80"
69-
7089
ordering.api:
7190
environment:
7291
- ASPNETCORE_ENVIRONMENT=Development
@@ -131,66 +150,6 @@ services:
131150
- "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
132151
# The API Gateway redirects and access through the internal port (80).
133152

134-
webspa:
135-
environment:
136-
- ASPNETCORE_ENVIRONMENT=Development
137-
- ASPNETCORE_URLS=http://0.0.0.0:80
138-
- 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.
139-
- PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
140-
- MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
141-
- CatalogUrlHC=http://catalog.api/hc
142-
- OrderingUrlHC=http://ordering.api/hc
143-
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
144-
- BasketUrlHC=http://basket.api/hc
145-
- MarketingUrlHC=http://marketing.api/hc
146-
- PaymentUrlHC=http://payment.api/hc
147-
- UseCustomizationData=True
148-
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
149-
- OrchestratorType=${ORCHESTRATOR_TYPE}
150-
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
151-
ports:
152-
- "5104:80"
153-
154-
webmvc:
155-
environment:
156-
- ASPNETCORE_ENVIRONMENT=Development
157-
- ASPNETCORE_URLS=http://0.0.0.0:80
158-
- PurchaseUrl=http://webshoppingapigw
159-
- 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.
160-
- MarketingUrl=http://webmarketingapigw
161-
- CatalogUrlHC=http://catalog.api/hc
162-
- OrderingUrlHC=http://ordering.api/hc
163-
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
164-
- BasketUrlHC=http://basket.api/hc
165-
- MarketingUrlHC=http://marketing.api/hc
166-
- PaymentUrlHC=http://payment.api/hc
167-
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
168-
- UseCustomizationData=True
169-
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
170-
- OrchestratorType=${ORCHESTRATOR_TYPE}
171-
- UseLoadTest=${USE_LOADTEST:-False}
172-
ports:
173-
- "5100:80"
174-
175-
webstatus:
176-
environment:
177-
- ASPNETCORE_ENVIRONMENT=Development
178-
- ASPNETCORE_URLS=http://0.0.0.0:80
179-
- CatalogUrl=http://catalog.api/hc
180-
- OrderingUrl=http://ordering.api/hc
181-
- OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
182-
- BasketUrl=http://basket.api/hc
183-
- IdentityUrl=http://identity.api/hc
184-
- LocationsUrl=http://locations.api/hc
185-
- MarketingUrl=http://marketing.api/hc
186-
- PaymentUrl=http://payment.api/hc
187-
- mvc=http://webmvc/hc
188-
- spa=http://webspa/hc
189-
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
190-
- OrchestratorType=${ORCHESTRATOR_TYPE}
191-
ports:
192-
- "5107:80"
193-
194153
payment.api:
195154
environment:
196155
- ASPNETCORE_ENVIRONMENT=Development
@@ -223,27 +182,6 @@ services:
223182
ports:
224183
- "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
225184
# The API Gateway redirects and access through the internal port (80).
226-
227-
228-
sql.data:
229-
environment:
230-
- SA_PASSWORD=Pass@word
231-
- ACCEPT_EULA=Y
232-
ports:
233-
- "5433:1433" # Important: In a production environment your should remove the external port
234-
235-
nosql.data:
236-
ports:
237-
- "27017:27017" # Important: In a production environment your should remove the external port
238-
239-
basket.data:
240-
ports:
241-
- "6379:6379" # Important: In a production environment your should remove the external port
242-
243-
rabbitmq:
244-
ports:
245-
- "15672:15672" # Important: In a production environment your should remove the external port
246-
- "5672:5672" # Important: In a production environment your should remove the external port
247185

248186
mobileshoppingapigw:
249187
environment:
@@ -253,6 +191,7 @@ services:
253191
- "5200:80"
254192
volumes:
255193
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
194+
256195
mobilemarketingapigw:
257196
environment:
258197
- ASPNETCORE_ENVIRONMENT=Development
@@ -301,6 +240,7 @@ services:
301240
ports:
302241
- "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
303242
# The API Gateway redirects and access through the internal port (80).
243+
304244
ordering.signalrhub:
305245
environment:
306246
- ASPNETCORE_ENVIRONMENT=Development
@@ -315,3 +255,63 @@ services:
315255
ports:
316256
- "5112:80"
317257

258+
webstatus:
259+
environment:
260+
- ASPNETCORE_ENVIRONMENT=Development
261+
- ASPNETCORE_URLS=http://0.0.0.0:80
262+
- CatalogUrl=http://catalog.api/hc
263+
- OrderingUrl=http://ordering.api/hc
264+
- OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
265+
- BasketUrl=http://basket.api/hc
266+
- IdentityUrl=http://identity.api/hc
267+
- LocationsUrl=http://locations.api/hc
268+
- MarketingUrl=http://marketing.api/hc
269+
- PaymentUrl=http://payment.api/hc
270+
- mvc=http://webmvc/hc
271+
- spa=http://webspa/hc
272+
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
273+
- OrchestratorType=${ORCHESTRATOR_TYPE}
274+
ports:
275+
- "5107:80"
276+
277+
webspa:
278+
environment:
279+
- ASPNETCORE_ENVIRONMENT=Development
280+
- ASPNETCORE_URLS=http://0.0.0.0:80
281+
- 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.
282+
- PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
283+
- MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
284+
- CatalogUrlHC=http://catalog.api/hc
285+
- OrderingUrlHC=http://ordering.api/hc
286+
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
287+
- BasketUrlHC=http://basket.api/hc
288+
- MarketingUrlHC=http://marketing.api/hc
289+
- PaymentUrlHC=http://payment.api/hc
290+
- UseCustomizationData=True
291+
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
292+
- OrchestratorType=${ORCHESTRATOR_TYPE}
293+
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
294+
ports:
295+
- "5104:80"
296+
297+
webmvc:
298+
environment:
299+
- ASPNETCORE_ENVIRONMENT=Development
300+
- ASPNETCORE_URLS=http://0.0.0.0:80
301+
- PurchaseUrl=http://webshoppingapigw
302+
- 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.
303+
- MarketingUrl=http://webmarketingapigw
304+
- CatalogUrlHC=http://catalog.api/hc
305+
- OrderingUrlHC=http://ordering.api/hc
306+
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
307+
- BasketUrlHC=http://basket.api/hc
308+
- MarketingUrlHC=http://marketing.api/hc
309+
- PaymentUrlHC=http://payment.api/hc
310+
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
311+
- UseCustomizationData=True
312+
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
313+
- OrchestratorType=${ORCHESTRATOR_TYPE}
314+
- UseLoadTest=${USE_LOADTEST:-False}
315+
ports:
316+
- "5100:80"
317+

docker-compose.windows.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@
55
version: '3.4'
66

77
services:
8+
sql.data:
9+
image: microsoft/mssql-server-windows-developer
10+
11+
nosql.data:
12+
image: mongo:windowsservercore
13+
14+
basket.data:
15+
image: redis:nanoserver
16+
17+
rabbitmq:
18+
image: spring2/rabbitmq
19+
820
identity.api:
921
build:
1022
args:
1123
NODE_IMAGE: stefanscherer/node-windows:8.11
1224

13-
webmvc:
25+
webspa:
1426
build:
1527
args:
1628
NODE_IMAGE: stefanscherer/node-windows:8.11
17-
18-
webspa:
29+
30+
webmvc:
1931
build:
2032
args:
2133
NODE_IMAGE: stefanscherer/node-windows:8.11
2234

23-
sql.data:
24-
image: microsoft/mssql-server-windows-developer
25-
26-
nosql.data:
27-
image: mongo:windowsservercore
28-
29-
basket.data:
30-
image: redis:nanoserver
31-
32-
rabbitmq:
33-
image: spring2/rabbitmq
34-
3535

3636
networks:
3737
default:

docker-compose.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99

1010
basket.data:
1111
image: redis:alpine
12-
12+
1313
rabbitmq:
1414
image: rabbitmq:3-management-alpine
1515

@@ -76,7 +76,7 @@ services:
7676
dockerfile: src/Services/Payment/Payment.API/Dockerfile
7777
depends_on:
7878
- rabbitmq
79-
79+
8080
locations.api:
8181
image: eshop/locations.api:${TAG:-latest}
8282
build:
@@ -100,7 +100,7 @@ services:
100100
- marketing.api
101101
- catalog.api
102102
- basket.api
103-
103+
104104
mobilemarketingapigw:
105105
image: eshop/ocelotapigw:${TAG:-latest}
106106
build:
@@ -115,7 +115,7 @@ services:
115115
- marketing.api
116116
- catalog.api
117117
- basket.api
118-
118+
119119
webshoppingapigw:
120120
image: eshop/ocelotapigw:${TAG:-latest}
121121
build:
@@ -207,7 +207,6 @@ services:
207207
# - webshoppingapigw
208208
# - webmarketingapigw
209209

210-
211210
webmvc:
212211
image: eshop/webmvc:${TAG:-latest}
213212
build:

0 commit comments

Comments
 (0)