Skip to content

Commit 20a7427

Browse files
committed
more config setups
1 parent 2741fde commit 20a7427

2 files changed

Lines changed: 26 additions & 18 deletions

File tree

docker-compose-windows.override.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ services:
1111
basket.api:
1212
environment:
1313
- ASPNETCORE_ENVIRONMENT=Development
14-
- ASPNETCORE_URLS=http://0.0.0.0:5103
14+
- ASPNETCORE_URLS=http://0.0.0.0:80
1515
- ConnectionString=basket.data
1616
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
1717
- EventBusConnection=rabbitmq
1818
ports:
19-
- "5103:5103"
19+
- "5103:80"
2020

2121
catalog.api:
2222
environment:
@@ -26,7 +26,7 @@ services:
2626
- 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.
2727
- EventBusConnection=rabbitmq
2828
ports:
29-
- "5101:5101"
29+
- "5101:80"
3030

3131
identity.api:
3232
environment:
@@ -56,6 +56,10 @@ services:
5656
- OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
5757
- 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.
5858
- BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
59+
- CatalogUrlHC=http://catalog.api/hc
60+
- OrderingUrlHC=http://ordering.api/hc
61+
- 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
5963
ports:
6064
- "5104:80"
6165

docker-compose-windows.prod.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,61 +16,65 @@ services:
1616
basket.api:
1717
environment:
1818
- ASPNETCORE_ENVIRONMENT=Production
19-
- ASPNETCORE_URLS=http://0.0.0.0:5103
19+
- ASPNETCORE_URLS=http://0.0.0.0:80
2020
- ConnectionString=basket.data
21-
- identityUrl=http://identity.api:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
21+
- identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
2222
ports:
2323
- "5103:5103"
2424

2525
catalog.api:
2626
environment:
2727
- ASPNETCORE_ENVIRONMENT=Production
28-
- ASPNETCORE_URLS=http://0.0.0.0:5101
28+
- ASPNETCORE_URLS=http://0.0.0.0:80
2929
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
3030
- 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.
3131
ports:
32-
- "5101:5101"
32+
- "5101:80"
3333

3434
identity.api:
3535
environment:
3636
- ASPNETCORE_ENVIRONMENT=Production
37-
- ASPNETCORE_URLS=http://0.0.0.0:5105
37+
- ASPNETCORE_URLS=http://0.0.0.0:80
3838
- SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
3939
- ConnectionStrings__DefaultConnection=Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word
4040
- MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your host's firewall at range 5100-5105.
4141
ports:
42-
- "5105:5105"
42+
- "5105:80"
4343

4444
ordering.api:
4545
environment:
4646
- ASPNETCORE_ENVIRONMENT=Production
47-
- ASPNETCORE_URLS=http://0.0.0.0:5102
47+
- ASPNETCORE_URLS=http://0.0.0.0:80
4848
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
4949
- identityUrl=http://identity.api:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
5050
ports:
51-
- "5102:5102"
51+
- "5102:80"
5252

5353
webspa:
5454
environment:
5555
- ASPNETCORE_ENVIRONMENT=Production
56-
- ASPNETCORE_URLS=http://0.0.0.0:5104
56+
- ASPNETCORE_URLS=http://0.0.0.0
5757
- CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
5858
- OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
5959
- 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.
6060
- BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
61+
- CatalogUrlHC=http://catalog.api/hc
62+
- OrderingUrlHC=http://ordering.api/hc
63+
- 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
6165
ports:
62-
- "5104:5104"
66+
- "5104:80"
6367

6468
webmvc:
6569
environment:
6670
- ASPNETCORE_ENVIRONMENT=Production
67-
- ASPNETCORE_URLS=http://0.0.0.0:5100
68-
- CatalogUrl=http://catalog.api:5101
69-
- OrderingUrl=http://ordering.api:5102
71+
- ASPNETCORE_URLS=http://0.0.0.0:80
72+
- CatalogUrl=http://catalog.api
73+
- OrderingUrl=http://ordering.api
7074
- 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.
71-
- BasketUrl=http://basket.api:5103
75+
- BasketUrl=http://basket.api
7276
ports:
73-
- "5100:5100"
77+
- "5100:80"
7478

7579
sql.data:
7680
environment:

0 commit comments

Comments
 (0)