Skip to content

Commit 87ea62c

Browse files
committed
Updated docker compose files for windows
1 parent 29e319e commit 87ea62c

8 files changed

Lines changed: 240 additions & 43 deletions

File tree

docker-compose-windows.override.yml

Lines changed: 82 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,25 @@ services:
1212
environment:
1313
- ASPNETCORE_ENVIRONMENT=Development
1414
- ASPNETCORE_URLS=http://0.0.0.0:80
15-
- ConnectionString=basket.data
16-
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
17-
- EventBusConnection=rabbitmq
15+
- ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
16+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
17+
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
18+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
19+
- AzureServiceBusEnabled=False
1820
ports:
1921
- "5103:80"
2022

2123
catalog.api:
2224
environment:
2325
- ASPNETCORE_ENVIRONMENT=Development
2426
- ASPNETCORE_URLS=http://0.0.0.0:80
25-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
26-
- ExternalCatalogBaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
27-
- EventBusConnection=rabbitmq
27+
- ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
28+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG:-http://localhost:5101/api/v1/catalog/items/[0]/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
29+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
30+
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
31+
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
32+
- UseCustomizationData=True
33+
- AzureServiceBusEnabled=False
2834
ports:
2935
- "5101:80"
3036

@@ -33,18 +39,27 @@ services:
3339
- ASPNETCORE_ENVIRONMENT=Development
3440
- ASPNETCORE_URLS=http://0.0.0.0:80
3541
- SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
36-
- ConnectionStrings__DefaultConnection=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-5105.
42+
- 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
43+
- ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
44+
- MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
45+
- LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
46+
- MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
47+
- BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
48+
- OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
49+
- UseCustomizationData=True
3850
ports:
3951
- "5105:80"
4052

4153
ordering.api:
4254
environment:
4355
- ASPNETCORE_ENVIRONMENT=Development
4456
- ASPNETCORE_URLS=http://0.0.0.0:80
45-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
46-
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
47-
- EventBusConnection=rabbitmq
57+
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
58+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
59+
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
60+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
61+
- UseCustomizationData=True
62+
- AzureServiceBusEnabled=False
4863
ports:
4964
- "5102:80"
5065

@@ -55,11 +70,14 @@ services:
5570
- CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
5671
- OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
5772
- 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.
58-
- BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
73+
- BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
74+
- MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
5975
- CatalogUrlHC=http://catalog.api/hc
6076
- OrderingUrlHC=http://ordering.api/hc
6177
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
62-
- BasketUrlHC=http://basket.api/hc
78+
- BasketUrlHC=http://basket.api/hc
79+
- MarketingUrlHC=http://marketing.api/hc
80+
- UseCustomizationData=True
6381
ports:
6482
- "5104:80"
6583

@@ -70,8 +88,9 @@ services:
7088
- CatalogUrl=http://catalog.api
7189
- OrderingUrl=http://ordering.api
7290
- BasketUrl=http://basket.api
73-
- IdentityUrl=http://10.0.75.1:5105 #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
74-
#Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
91+
- IdentityUrl=http://10.0.75.1:5105
92+
- MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
93+
- UseCustomizationData=True #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
7594
ports:
7695
- "5100:80"
7796

@@ -90,21 +109,61 @@ services:
90109
environment:
91110
- ASPNETCORE_ENVIRONMENT=Development
92111
- ASPNETCORE_URLS=http://0.0.0.0:80
93-
- ConnectionString=mongodb://nosql.data
112+
- ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
94113
- Database=LocationsDb
95-
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
96-
- EventBusConnection=rabbitmq
114+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
115+
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
116+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
117+
- AzureServiceBusEnabled=False
97118
ports:
98119
- "5109:80"
99120

100121
marketing.api:
101122
environment:
102123
- ASPNETCORE_ENVIRONMENT=Development
103124
- ASPNETCORE_URLS=http://0.0.0.0:80
104-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word
105-
- EventBusConnection=rabbitmq
106-
- MongoConnectionString=mongodb://nosql.data
125+
- ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
126+
- MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
107127
- MongoDatabase=MarketingDb
108-
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
128+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
129+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
130+
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
131+
- CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
132+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
133+
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
134+
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
135+
- AzureServiceBusEnabled=False
136+
ports:
137+
- "5110:80"
138+
139+
graceperiodmanager:
140+
environment:
141+
- ASPNETCORE_ENVIRONMENT=Development
142+
- ASPNETCORE_URLS=http://0.0.0.0:80
143+
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
144+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
145+
- AzureServiceBusEnabled=False
146+
147+
webstatus:
148+
environment:
149+
- ASPNETCORE_ENVIRONMENT=Development
150+
- ASPNETCORE_URLS=http://0.0.0.0:80
151+
- CatalogUrl=http://catalog.api/hc
152+
- OrderingUrl=http://ordering.api/hc
153+
- BasketUrl=http://basket.api/hc
154+
- IdentityUrl=http://identity.api/hc
155+
- LocationsUrl=http://locations.api/hc
156+
- MarketingUrl=http://marketing.api/hc
157+
- mvc=http://webmvc/hc
158+
- spa=http://webspa/hc
159+
ports:
160+
- "5107:80"
161+
162+
payment.api:
163+
environment:
164+
- ASPNETCORE_ENVIRONMENT=Development
165+
- ASPNETCORE_URLS=http://0.0.0.0:80
166+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
167+
- AzureServiceBusEnabled=False
109168
ports:
110-
- "5110:80"
169+
- "5108:80"

docker-compose-windows.prod.yml

Lines changed: 88 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,23 @@ services:
1717
environment:
1818
- ASPNETCORE_ENVIRONMENT=Production
1919
- ASPNETCORE_URLS=http://0.0.0.0:80
20-
- ConnectionString=basket.data
21-
- identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
20+
- ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
21+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
22+
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
23+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
2224
ports:
2325
- "5103:5103"
2426

2527
catalog.api:
2628
environment:
2729
- ASPNETCORE_ENVIRONMENT=Production
2830
- ASPNETCORE_URLS=http://0.0.0.0:80
29-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
30-
- ExternalCatalogBaseUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
31+
- ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
32+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG} #Local: You need to open your local dev-machine firewall at range 5100-5110.
33+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
34+
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
35+
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
36+
- UseCustomizationData=True
3137
ports:
3238
- "5101:80"
3339

@@ -36,17 +42,26 @@ services:
3642
- ASPNETCORE_ENVIRONMENT=Production
3743
- ASPNETCORE_URLS=http://0.0.0.0:80
3844
- SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
39-
- ConnectionStrings__DefaultConnection=Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word
40-
- MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your host's firewall at range 5100-5105.
45+
- XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
46+
- ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
47+
- MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
48+
- LocationApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5109
49+
- MarketingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
50+
- BasketApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
51+
- OrderingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
52+
- UseCustomizationData=True
4153
ports:
4254
- "5105:80"
4355

4456
ordering.api:
4557
environment:
4658
- ASPNETCORE_ENVIRONMENT=Production
4759
- ASPNETCORE_URLS=http://0.0.0.0:80
48-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
49-
- identityUrl=http://identity.api:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
60+
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
61+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
62+
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
63+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
64+
- UseCustomizationData=True
5065
ports:
5166
- "5102:80"
5267

@@ -56,12 +71,15 @@ services:
5671
- ASPNETCORE_URLS=http://0.0.0.0
5772
- CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
5873
- OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
59-
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
60-
- BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
74+
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5110.
75+
- BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
76+
- MarketingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
6177
- CatalogUrlHC=http://catalog.api/hc
6278
- OrderingUrlHC=http://ordering.api/hc
6379
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
64-
- BasketUrlHC=http://basket.api/hc
80+
- BasketUrlHC=http://basket.api/hc
81+
- MarketingUrlHC=http://marketing.api/hc
82+
- UseCustomizationData=True
6583
ports:
6684
- "5104:80"
6785

@@ -73,24 +91,77 @@ services:
7391
- OrderingUrl=http://ordering.api
7492
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
7593
- BasketUrl=http://basket.api
94+
- MarketingUrl=http://marketing.api
7695
ports:
7796
- "5100:80"
7897

7998
marketing.api:
8099
environment:
81100
- ASPNETCORE_ENVIRONMENT=Production
82101
- ASPNETCORE_URLS=http://0.0.0.0:80
83-
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word
84-
- EventBusConnection=rabbitmq
85-
- MongoConnectionString=mongodb://nosql.data
102+
- ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
103+
- MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
86104
- MongoDatabase=MarketingDb
87-
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
105+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
106+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
107+
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
108+
- CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
109+
- PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING}
110+
- AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
111+
- AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
88112
ports:
89113
- "5110:80"
90-
114+
115+
graceperiodmanager:
116+
environment:
117+
- ASPNETCORE_ENVIRONMENT=Production
118+
- ASPNETCORE_URLS=http://0.0.0.0:80
119+
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
120+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
121+
91122
sql.data:
92123
environment:
93124
- SA_PASSWORD=Pass@word
94125
- ACCEPT_EULA=Y
95126
ports:
96-
- "5433:1433"
127+
- "5433:1433"
128+
129+
nosql.data:
130+
ports:
131+
- "27017:27017"
132+
133+
webstatus:
134+
environment:
135+
- ASPNETCORE_ENVIRONMENT=Production
136+
- ASPNETCORE_URLS=http://0.0.0.0:80
137+
- CatalogUrl=http://catalog.api/hc
138+
- OrderingUrl=http://ordering.api/hc
139+
- BasketUrl=http://basket.api/hc
140+
- IdentityUrl=http://identity.api/hc
141+
- LocationsUrl=http://locations.api/hc
142+
- MarketingUrl=http://marketing.api/hc
143+
- mvc=http://webmvc/hc
144+
- spa=http://webspa/hc
145+
146+
ports:
147+
- "5107:80"
148+
149+
payment.api:
150+
environment:
151+
- ASPNETCORE_ENVIRONMENT=Production
152+
- ASPNETCORE_URLS=http://0.0.0.0:5108
153+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
154+
ports:
155+
- "5108:80"
156+
157+
locations.api:
158+
environment:
159+
- ASPNETCORE_ENVIRONMENT=Production
160+
- ASPNETCORE_URLS=http://0.0.0.0:80
161+
- ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
162+
- Database=LocationsDb
163+
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
164+
- IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
165+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
166+
ports:
167+
- "5109:80"

0 commit comments

Comments
 (0)