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.

180 lines
8.4 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. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  17. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  18. - AzureServiceBusEnabled=False
  19. ports:
  20. - "5103:80"
  21. catalog.api:
  22. environment:
  23. - ASPNETCORE_ENVIRONMENT=Development
  24. - ASPNETCORE_URLS=http://0.0.0.0:80
  25. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  26. - 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.
  27. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  28. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  29. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  30. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  31. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  32. - UseCustomizationData=True
  33. - AzureServiceBusEnabled=False
  34. - AzureStorageEnabled=False
  35. ports:
  36. - "5101:80"
  37. identity.api:
  38. environment:
  39. - ASPNETCORE_ENVIRONMENT=Development
  40. - ASPNETCORE_URLS=http://0.0.0.0:80
  41. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  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
  50. ports:
  51. - "5105:80"
  52. ordering.api:
  53. environment:
  54. - ASPNETCORE_ENVIRONMENT=Development
  55. - ASPNETCORE_URLS=http://0.0.0.0:80
  56. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  57. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  58. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  59. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  60. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  61. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  62. - UseCustomizationData=True
  63. - AzureServiceBusEnabled=False
  64. - CheckUpdateTime=30000
  65. ports:
  66. - "5102:80"
  67. marketing.api:
  68. environment:
  69. - ASPNETCORE_ENVIRONMENT=Development
  70. - ASPNETCORE_URLS=http://0.0.0.0:80
  71. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  72. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  73. - MongoDatabase=MarketingDb
  74. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  75. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  76. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  77. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  78. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  79. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  80. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  81. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  82. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  83. - AzureServiceBusEnabled=False
  84. - AzureStorageEnabled=False
  85. ports:
  86. - "5110:80"
  87. webspa:
  88. environment:
  89. - ASPNETCORE_ENVIRONMENT=Development
  90. - ASPNETCORE_URLS=http://0.0.0.0:80
  91. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  92. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  93. - 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.
  94. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  95. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  96. - LocationsUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  97. - CatalogUrlHC=http://catalog.api/hc
  98. - OrderingUrlHC=http://ordering.api/hc
  99. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  100. - BasketUrlHC=http://basket.api/hc
  101. - MarketingUrlHC=http://marketing.api/hc
  102. - UseCustomizationData=True
  103. ports:
  104. - "5104:80"
  105. webmvc:
  106. environment:
  107. - ASPNETCORE_ENVIRONMENT=Development
  108. - ASPNETCORE_URLS=http://0.0.0.0:80
  109. - CatalogUrl=http://catalog.api
  110. - OrderingUrl=http://ordering.api
  111. - BasketUrl=http://basket.api
  112. - LocationsUrl=http://locations.api
  113. - IdentityUrl=http://10.0.75.1:5105
  114. - MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  115. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  116. - UseCustomizationData=True
  117. ports:
  118. - "5100:80"
  119. webstatus:
  120. environment:
  121. - ASPNETCORE_ENVIRONMENT=Development
  122. - ASPNETCORE_URLS=http://0.0.0.0:80
  123. - CatalogUrl=http://catalog.api/hc
  124. - OrderingUrl=http://ordering.api/hc
  125. - BasketUrl=http://basket.api/hc
  126. - IdentityUrl=http://identity.api/hc
  127. - LocationsUrl=http://locations.api/hc
  128. - MarketingUrl=http://marketing.api/hc
  129. - mvc=http://webmvc/hc
  130. - spa=http://webspa/hc
  131. ports:
  132. - "5107:80"
  133. payment.api:
  134. environment:
  135. - ASPNETCORE_ENVIRONMENT=Development
  136. - ASPNETCORE_URLS=http://0.0.0.0:80
  137. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  138. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  139. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  140. - AzureServiceBusEnabled=False
  141. ports:
  142. - "5108:80"
  143. locations.api:
  144. environment:
  145. - ASPNETCORE_ENVIRONMENT=Development
  146. - ASPNETCORE_URLS=http://0.0.0.0:80
  147. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  148. - Database=LocationsDb
  149. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  150. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  151. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  152. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  153. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  154. - AzureServiceBusEnabled=False
  155. ports:
  156. - "5109:80"
  157. sql.data:
  158. environment:
  159. - SA_PASSWORD=Pass@word
  160. - ACCEPT_EULA=Y
  161. - MSSQL_PID=Developer
  162. ports:
  163. - "5433:1433"
  164. nosql.data:
  165. ports:
  166. - "27017:27017"