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.

178 lines
8.3 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. - GracePeriodTime=1
  65. - CheckUpdateTime=30000
  66. ports:
  67. - "5102:80"
  68. marketing.api:
  69. environment:
  70. - ASPNETCORE_ENVIRONMENT=Development
  71. - ASPNETCORE_URLS=http://0.0.0.0:80
  72. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  73. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  74. - MongoDatabase=MarketingDb
  75. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  76. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  77. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  78. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  79. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  80. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  81. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  82. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  83. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  84. - AzureServiceBusEnabled=False
  85. - AzureStorageEnabled=False
  86. ports:
  87. - "5110:80"
  88. webspa:
  89. environment:
  90. - ASPNETCORE_ENVIRONMENT=Development
  91. - ASPNETCORE_URLS=http://0.0.0.0:80
  92. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  93. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  94. - 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.
  95. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  96. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  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. - IdentityUrl=http://10.0.75.1:5105
  113. - MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  114. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  115. - UseCustomizationData=True
  116. ports:
  117. - "5100:80"
  118. webstatus:
  119. environment:
  120. - ASPNETCORE_ENVIRONMENT=Development
  121. - ASPNETCORE_URLS=http://0.0.0.0:80
  122. - CatalogUrl=http://catalog.api/hc
  123. - OrderingUrl=http://ordering.api/hc
  124. - BasketUrl=http://basket.api/hc
  125. - IdentityUrl=http://identity.api/hc
  126. - LocationsUrl=http://locations.api/hc
  127. - MarketingUrl=http://marketing.api/hc
  128. - mvc=http://webmvc/hc
  129. - spa=http://webspa/hc
  130. ports:
  131. - "5107:80"
  132. payment.api:
  133. environment:
  134. - ASPNETCORE_ENVIRONMENT=Development
  135. - ASPNETCORE_URLS=http://0.0.0.0:80
  136. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  137. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  138. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  139. - AzureServiceBusEnabled=False
  140. ports:
  141. - "5108:80"
  142. locations.api:
  143. environment:
  144. - ASPNETCORE_ENVIRONMENT=Development
  145. - ASPNETCORE_URLS=http://0.0.0.0:80
  146. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  147. - Database=LocationsDb
  148. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  149. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  150. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  151. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  152. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  153. - AzureServiceBusEnabled=False
  154. ports:
  155. - "5109:80"
  156. sql.data:
  157. environment:
  158. - SA_PASSWORD=Pass@word
  159. - ACCEPT_EULA=Y
  160. ports:
  161. - "5433:1433"
  162. nosql.data:
  163. ports:
  164. - "27017:27017"