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.

239 lines
11 KiB

7 years ago
7 years ago
7 years ago
  1. version: '3.4'
  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. - PurchaseBFFClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
  55. - UseCustomizationData=True
  56. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  57. - OrchestratorType=${ORCHESTRATOR_TYPE}
  58. ports:
  59. - "5105:80"
  60. ordering.api:
  61. environment:
  62. - ASPNETCORE_ENVIRONMENT=Development
  63. - ASPNETCORE_URLS=http://0.0.0.0:80
  64. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  65. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  66. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  67. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  68. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  69. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  70. - UseCustomizationData=True
  71. - AzureServiceBusEnabled=False
  72. - CheckUpdateTime=30000
  73. - GracePeriodTime=1
  74. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  75. - OrchestratorType=${ORCHESTRATOR_TYPE}
  76. - UseLoadTest=${USE_LOADTEST:-False}
  77. ports:
  78. - "5102:80"
  79. marketing.api:
  80. environment:
  81. - ASPNETCORE_ENVIRONMENT=Development
  82. - ASPNETCORE_URLS=http://0.0.0.0:80
  83. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  84. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  85. - MongoDatabase=MarketingDb
  86. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  87. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  88. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  89. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  90. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  91. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  92. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  93. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  94. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  95. - AzureServiceBusEnabled=False
  96. - AzureStorageEnabled=False
  97. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  98. - OrchestratorType=${ORCHESTRATOR_TYPE}
  99. - UseLoadTest=${USE_LOADTEST:-False}
  100. ports:
  101. - "5110:80"
  102. webspa:
  103. environment:
  104. - ASPNETCORE_ENVIRONMENT=Development
  105. - ASPNETCORE_URLS=http://0.0.0.0:80
  106. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  107. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  108. - 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.
  109. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  110. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  111. - LocationsUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  112. - CatalogUrlHC=http://catalog.api/hc
  113. - OrderingUrlHC=http://ordering.api/hc
  114. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  115. - BasketUrlHC=http://basket.api/hc
  116. - MarketingUrlHC=http://marketing.api/hc
  117. - PaymentUrlHC=http://payment.api/hc
  118. - UseCustomizationData=True
  119. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  120. - OrchestratorType=${ORCHESTRATOR_TYPE}
  121. ports:
  122. - "5104:80"
  123. webmvc:
  124. environment:
  125. - ASPNETCORE_ENVIRONMENT=Development
  126. - ASPNETCORE_URLS=http://0.0.0.0:80
  127. - PurchaseUrl=http://apigw/purchase-bff
  128. - LocationsUrl=http://locations.api
  129. - IdentityUrl=http://10.0.75.1:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  130. - MarketingUrl=http://marketing.api
  131. - CatalogUrlHC=http://catalog.api/hc
  132. - OrderingUrlHC=http://ordering.api/hc
  133. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  134. - BasketUrlHC=http://basket.api/hc
  135. - MarketingUrlHC=http://marketing.api/hc
  136. - PaymentUrlHC=http://payment.api/hc
  137. - UseCustomizationData=True
  138. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  139. - OrchestratorType=${ORCHESTRATOR_TYPE}
  140. - UseLoadTest=${USE_LOADTEST:-False}
  141. ports:
  142. - "5100:80"
  143. webstatus:
  144. environment:
  145. - ASPNETCORE_ENVIRONMENT=Development
  146. - ASPNETCORE_URLS=http://0.0.0.0:80
  147. - CatalogUrl=http://catalog.api/hc
  148. - OrderingUrl=http://ordering.api/hc
  149. - BasketUrl=http://basket.api/hc
  150. - IdentityUrl=http://identity.api/hc
  151. - LocationsUrl=http://locations.api/hc
  152. - MarketingUrl=http://marketing.api/hc
  153. - PaymentUrl=http://payment.api/hc
  154. - mvc=http://webmvc/hc
  155. - spa=http://webspa/hc
  156. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  157. - OrchestratorType=${ORCHESTRATOR_TYPE}
  158. ports:
  159. - "5107:80"
  160. payment.api:
  161. environment:
  162. - ASPNETCORE_ENVIRONMENT=Development
  163. - ASPNETCORE_URLS=http://0.0.0.0:80
  164. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  165. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  166. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  167. - AzureServiceBusEnabled=False
  168. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  169. - OrchestratorType=${ORCHESTRATOR_TYPE}
  170. ports:
  171. - "5108:80"
  172. locations.api:
  173. environment:
  174. - ASPNETCORE_ENVIRONMENT=Development
  175. - ASPNETCORE_URLS=http://0.0.0.0:80
  176. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  177. - Database=LocationsDb
  178. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  179. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  180. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  181. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  182. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  183. - AzureServiceBusEnabled=False
  184. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  185. - OrchestratorType=${ORCHESTRATOR_TYPE}
  186. - UseLoadTest=${USE_LOADTEST:-False}
  187. ports:
  188. - "5109:80"
  189. sql.data:
  190. environment:
  191. - SA_PASSWORD=Pass@word
  192. - ACCEPT_EULA=Y
  193. ports:
  194. - "5433:1433"
  195. nosql.data:
  196. ports:
  197. - "27017:27017"
  198. basket.data:
  199. ports:
  200. - "6379:6379"
  201. rabbitmq:
  202. ports:
  203. - "15672:15672"
  204. - "5672:5672"
  205. apigw:
  206. environment:
  207. - ASPNETCORE_ENVIRONMENT=Development
  208. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  209. ports:
  210. - "5200:80"
  211. purchasebff:
  212. environment:
  213. - ASPNETCORE_ENVIRONMENT=Development
  214. - urls__basket=http://basket.api
  215. - urls__catalog=http://catalog.api
  216. - urls__orders=http://ordering.api
  217. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  218. ports:
  219. - "5120:80"