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.

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