2016-12-15 14:35:35 -08:00
version : '2'
2017-03-11 14:49:55 -08:00
# The default docker-compose.override file can use the "localhost" as the external name for testing web apps within the same dev machine.
2017-03-11 15:28:57 -08:00
# The ESHOP_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
# ESHOP_EXTERNAL_DNS_NAME_OR_IP=localhost
2017-03-11 14:49:55 -08:00
# but values present in the environment vars at runtime will always override those defined inside the .env file
# 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.
2016-12-15 14:35:35 -08:00
services :
2017-02-15 10:44:59 -05:00
2016-12-15 14:35:35 -08:00
basket.api :
environment :
2017-02-14 18:11:51 +01:00
- ASPNETCORE_ENVIRONMENT=Development
2017-02-23 09:34:00 -08:00
- ASPNETCORE_URLS=http://0.0.0.0:5103
2016-12-15 14:35:35 -08:00
- ConnectionString=basket.data
2017-02-15 10:44:59 -05:00
- identityUrl=http://identity.api:5105 #Local : You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
2017-03-13 11:03:35 +01:00
- EventBusConnection=rabbitmq
2016-12-15 14:35:35 -08:00
ports :
- "5103:5103"
catalog.api :
environment :
2017-02-14 18:11:51 +01:00
- ASPNETCORE_ENVIRONMENT=Development
2017-02-23 09:34:00 -08:00
- ASPNETCORE_URLS=http://0.0.0.0:5101
2016-12-19 10:20:02 +01:00
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
2017-03-14 11:50:28 +01:00
- 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.
2017-03-13 11:03:35 +01:00
- EventBusConnection=rabbitmq
2016-12-15 14:35:35 -08:00
ports :
2016-12-30 12:26:12 +01:00
- "5101:5101"
2016-12-15 14:35:35 -08:00
2017-02-14 18:11:51 +01:00
identity.api :
environment :
- ASPNETCORE_ENVIRONMENT=Development
2017-02-23 09:34:00 -08:00
- ASPNETCORE_URLS=http://0.0.0.0:5105
2017-03-11 14:49:55 -08:00
- SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
2017-03-03 17:33:12 -08:00
- ConnectionStrings__DefaultConnection=Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word
2017-03-11 14:49:55 -08:00
- MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5105.
2017-02-14 18:11:51 +01:00
ports :
- "5105:5105"
2016-12-19 10:20:02 +01:00
ordering.api :
environment :
2017-02-14 18:11:51 +01:00
- ASPNETCORE_ENVIRONMENT=Development
2017-02-23 09:34:00 -08:00
- ASPNETCORE_URLS=http://0.0.0.0:5102
2016-12-19 10:20:02 +01:00
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
2017-02-15 10:44:59 -05:00
- identityUrl=http://identity.api:5105 #Local : You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
2017-03-13 11:03:35 +01:00
- EventBusConnection=rabbitmq
2016-12-19 10:20:02 +01:00
ports :
- "5102:5102"
2016-12-15 14:35:35 -08:00
2017-02-15 10:44:59 -05:00
webspa :
2017-02-17 13:26:42 +01:00
environment :
- ASPNETCORE_ENVIRONMENT=Development
2017-02-23 09:34:00 -08:00
- ASPNETCORE_URLS=http://0.0.0.0:5104
2017-03-11 14:49:55 -08:00
- CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
- OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
- 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.
- BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
2017-02-17 13:26:42 +01:00
ports :
- "5104:5104"
2017-02-14 18:11:51 +01:00
webmvc :
environment :
- ASPNETCORE_ENVIRONMENT=Development
2017-02-23 09:34:00 -08:00
- ASPNETCORE_URLS=http://0.0.0.0:5100
2017-02-14 18:11:51 +01:00
- CatalogUrl=http://catalog.api:5101
- OrderingUrl=http://ordering.api:5102
- BasketUrl=http://basket.api:5103
2017-03-11 14:49:55 -08:00
- IdentityUrl=http://10.0.75.1:5105 #Local : Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
#Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
2017-02-14 18:11:51 +01:00
ports :
- "5100:5100"
2016-12-15 14:35:35 -08:00
2016-12-17 14:41:16 +01:00
sql.data :
2016-12-15 14:35:35 -08:00
environment :
- SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports :
2017-03-23 19:10:55 +01:00
- "5433:1433"
webstatus :
environment :
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:5107
- CatalogUrl=http://catalog.api:5101/hc
- OrderingUrl=http://ordering.api:5102/hc
- BasketUrl=http://basket.api:5103/hc
- IdentityUrl=http://10.0.75.1:5105/hc
2017-03-28 16:16:01 +02:00
- mvc=http://webmvc:5100/hc
- spa=http://webspa:5104/hc
2017-03-23 19:10:55 +01:00
ports :
- "5107:5107"