Skip to content

Commit dbc80a3

Browse files
Updates in docker-compose.prod.yml
1 parent 779c7c2 commit dbc80a3

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

docker-compose.prod.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ version: '3'
77
# An external IP or DNS name has to be used when testing the Web apps and the Xamarin apps from remote machines/devices using the same WiFi, for instance.
88
#
99
# IMPORTANT: Note that this compose file uses ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP instead of ESHOP_EXTERNAL_DNS_NAME_OR_IP
10-
# Set ASPNETCORE_ENVIRONMENT=Development to get errors while testing.
10+
11+
# Set ASPNETCORE_ENVIRONMENT=Development, instead Production, if you want to show up errors while testing.
1112
#
1213
# You need to start it with the following CLI command:
1314
# docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
@@ -16,7 +17,7 @@ services:
1617

1718
basket.api:
1819
environment:
19-
- ASPNETCORE_ENVIRONMENT=Development
20+
- ASPNETCORE_ENVIRONMENT=Production
2021
- ASPNETCORE_URLS=http://0.0.0.0:80
2122
- ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
2223
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
@@ -34,7 +35,7 @@ services:
3435

3536
catalog.api:
3637
environment:
37-
- ASPNETCORE_ENVIRONMENT=Development
38+
- ASPNETCORE_ENVIRONMENT=Production
3839
- ASPNETCORE_URLS=http://0.0.0.0:80
3940
- ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
4041
- 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.
@@ -53,7 +54,7 @@ services:
5354

5455
identity.api:
5556
environment:
56-
- ASPNETCORE_ENVIRONMENT=Development
57+
- ASPNETCORE_ENVIRONMENT=Production
5758
- ASPNETCORE_URLS=http://0.0.0.0:80
5859
- SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
5960
- 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
@@ -71,7 +72,7 @@ services:
7172

7273
ordering.api:
7374
environment:
74-
- ASPNETCORE_ENVIRONMENT=Development
75+
- ASPNETCORE_ENVIRONMENT=Production
7576
- ASPNETCORE_URLS=http://0.0.0.0:80
7677
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
7778
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
@@ -91,7 +92,7 @@ services:
9192

9293
marketing.api:
9394
environment:
94-
- ASPNETCORE_ENVIRONMENT=Development
95+
- ASPNETCORE_ENVIRONMENT=Production
9596
- ASPNETCORE_URLS=http://0.0.0.0:80
9697
- ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
9798
- MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
@@ -115,7 +116,7 @@ services:
115116

116117
webspa:
117118
environment:
118-
- ASPNETCORE_ENVIRONMENT=Development
119+
- ASPNETCORE_ENVIRONMENT=Production
119120
- ASPNETCORE_URLS=http://0.0.0.0:80
120121
- CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
121122
- OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
@@ -137,7 +138,7 @@ services:
137138

138139
webmvc:
139140
environment:
140-
- ASPNETCORE_ENVIRONMENT=Development
141+
- ASPNETCORE_ENVIRONMENT=Production
141142
- ASPNETCORE_URLS=http://0.0.0.0:80
142143
- CatalogUrl=http://catalog.api
143144
- OrderingUrl=http://ordering.api
@@ -160,7 +161,7 @@ services:
160161

161162
webstatus:
162163
environment:
163-
- ASPNETCORE_ENVIRONMENT=Development
164+
- ASPNETCORE_ENVIRONMENT=Production
164165
- ASPNETCORE_URLS=http://0.0.0.0:80
165166
- CatalogUrl=http://catalog.api/hc
166167
- OrderingUrl=http://ordering.api/hc
@@ -178,7 +179,7 @@ services:
178179

179180
payment.api:
180181
environment:
181-
- ASPNETCORE_ENVIRONMENT=Development
182+
- ASPNETCORE_ENVIRONMENT=Production
182183
- ASPNETCORE_URLS=http://0.0.0.0:80
183184
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
184185
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
@@ -191,7 +192,7 @@ services:
191192

192193
locations.api:
193194
environment:
194-
- ASPNETCORE_ENVIRONMENT=Development
195+
- ASPNETCORE_ENVIRONMENT=Production
195196
- ASPNETCORE_URLS=http://0.0.0.0:80
196197
- ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
197198
- Database=LocationsDb

0 commit comments

Comments
 (0)