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.

207 lines
9.9 KiB

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