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.

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