You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
7.5 KiB

7 years ago
  1. version: '2.1'
  2. # The default docker-compose.override file can use the "localhost" as the external name for testing web apps within the same dev machine.
  3. # The ESHOP_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
  4. # ESHOP_EXTERNAL_DNS_NAME_OR_IP=localhost
  5. # but values present in the environment vars at runtime will always override those defined inside the .env file
  6. # 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.
  7. services:
  8. basket.api:
  9. environment:
  10. - ASPNETCORE_ENVIRONMENT=Development
  11. - ASPNETCORE_URLS=http://0.0.0.0:80
  12. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
  13. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  14. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  15. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  16. - AzureServiceBusEnabled=False
  17. ports:
  18. - "5103:80"
  19. catalog.api:
  20. environment:
  21. - ASPNETCORE_ENVIRONMENT=Development
  22. - ASPNETCORE_URLS=http://0.0.0.0:80
  23. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  24. - 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.
  25. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  26. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  27. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  28. - UseCustomizationData=True
  29. - AzureServiceBusEnabled=False
  30. - AzureStorageEnabled=False
  31. ports:
  32. - "5101:80"
  33. identity.api:
  34. environment:
  35. - ASPNETCORE_ENVIRONMENT=Development
  36. - ASPNETCORE_URLS=http://0.0.0.0:80
  37. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  38. - 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
  39. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  40. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  41. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  42. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  43. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  44. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  45. - UseCustomizationData=True
  46. ports:
  47. - "5105:80"
  48. ordering.api:
  49. environment:
  50. - ASPNETCORE_ENVIRONMENT=Development
  51. - ASPNETCORE_URLS=http://0.0.0.0:80
  52. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  53. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  54. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  55. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  56. - UseCustomizationData=True
  57. - AzureServiceBusEnabled=False
  58. ports:
  59. - "5102:80"
  60. marketing.api:
  61. environment:
  62. - ASPNETCORE_ENVIRONMENT=Development
  63. - ASPNETCORE_URLS=http://0.0.0.0:80
  64. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  65. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  66. - MongoDatabase=MarketingDb
  67. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  68. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  69. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  70. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  71. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  72. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  73. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  74. - AzureServiceBusEnabled=False
  75. - AzureStorageEnabled=False
  76. ports:
  77. - "5110:80"
  78. webspa:
  79. environment:
  80. - ASPNETCORE_ENVIRONMENT=Development
  81. - ASPNETCORE_URLS=http://0.0.0.0:80
  82. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  83. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  84. - 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.
  85. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  86. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  87. - CatalogUrlHC=http://catalog.api/hc
  88. - OrderingUrlHC=http://ordering.api/hc
  89. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  90. - BasketUrlHC=http://basket.api/hc
  91. - MarketingUrlHC=http://marketing.api/hc
  92. - UseCustomizationData=True
  93. ports:
  94. - "5104:80"
  95. webmvc:
  96. environment:
  97. - ASPNETCORE_ENVIRONMENT=Development
  98. - ASPNETCORE_URLS=http://0.0.0.0:80
  99. - CatalogUrl=http://catalog.api
  100. - OrderingUrl=http://ordering.api
  101. - BasketUrl=http://basket.api
  102. - IdentityUrl=http://10.0.75.1:5105
  103. - MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  104. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  105. - UseCustomizationData=True
  106. ports:
  107. - "5100:80"
  108. webstatus:
  109. environment:
  110. - ASPNETCORE_ENVIRONMENT=Development
  111. - ASPNETCORE_URLS=http://0.0.0.0:80
  112. - CatalogUrl=http://catalog.api/hc
  113. - OrderingUrl=http://ordering.api/hc
  114. - BasketUrl=http://basket.api/hc
  115. - IdentityUrl=http://identity.api/hc
  116. - LocationsUrl=http://locations.api/hc
  117. - MarketingUrl=http://marketing.api/hc
  118. - mvc=http://webmvc/hc
  119. - spa=http://webspa/hc
  120. ports:
  121. - "5107:80"
  122. payment.api:
  123. environment:
  124. - ASPNETCORE_ENVIRONMENT=Development
  125. - ASPNETCORE_URLS=http://0.0.0.0:80
  126. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  127. - AzureServiceBusEnabled=False
  128. ports:
  129. - "5108:80"
  130. locations.api:
  131. environment:
  132. - ASPNETCORE_ENVIRONMENT=Development
  133. - ASPNETCORE_URLS=http://0.0.0.0:80
  134. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  135. - Database=LocationsDb
  136. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  137. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  138. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  139. - AzureServiceBusEnabled=False
  140. ports:
  141. - "5109:80"
  142. sql.data:
  143. environment:
  144. - SA_PASSWORD=Pass@word
  145. - ACCEPT_EULA=Y
  146. ports:
  147. - "5433:1433"
  148. nosql.data:
  149. ports:
  150. - "27017:27017"