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.

241 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. - CatalogUrl=http://apigw/purchase-bff/catalog
  128. - OrderingUrl=http://ordering.api
  129. - BasketUrl=http://basket.api
  130. - PurchaseUrl=http://apigw/purchase-bff
  131. - LocationsUrl=http://locations.api
  132. - 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.
  133. - MarketingUrl=http://marketing.api
  134. - CatalogUrlHC=http://catalog.api/hc
  135. - OrderingUrlHC=http://ordering.api/hc
  136. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  137. - BasketUrlHC=http://basket.api/hc
  138. - MarketingUrlHC=http://marketing.api/hc
  139. - PaymentUrlHC=http://payment.api/hc
  140. - UseCustomizationData=True
  141. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  142. - OrchestratorType=${ORCHESTRATOR_TYPE}
  143. - UseLoadTest=${USE_LOADTEST:-False}
  144. ports:
  145. - "5100:80"
  146. webstatus:
  147. environment:
  148. - ASPNETCORE_ENVIRONMENT=Development
  149. - ASPNETCORE_URLS=http://0.0.0.0:80
  150. - CatalogUrl=http://catalog.api/hc
  151. - OrderingUrl=http://ordering.api/hc
  152. - BasketUrl=http://basket.api/hc
  153. - IdentityUrl=http://identity.api/hc
  154. - LocationsUrl=http://locations.api/hc
  155. - MarketingUrl=http://marketing.api/hc
  156. - PaymentUrl=http://payment.api/hc
  157. - mvc=http://webmvc/hc
  158. - spa=http://webspa/hc
  159. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  160. - OrchestratorType=${ORCHESTRATOR_TYPE}
  161. ports:
  162. - "5107:80"
  163. payment.api:
  164. environment:
  165. - ASPNETCORE_ENVIRONMENT=Development
  166. - ASPNETCORE_URLS=http://0.0.0.0:80
  167. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  168. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  169. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  170. - AzureServiceBusEnabled=False
  171. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  172. - OrchestratorType=${ORCHESTRATOR_TYPE}
  173. ports:
  174. - "5108:80"
  175. locations.api:
  176. environment:
  177. - ASPNETCORE_ENVIRONMENT=Development
  178. - ASPNETCORE_URLS=http://0.0.0.0:80
  179. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  180. - Database=LocationsDb
  181. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  182. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  183. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  184. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  185. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  186. - AzureServiceBusEnabled=False
  187. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  188. - OrchestratorType=${ORCHESTRATOR_TYPE}
  189. - UseLoadTest=${USE_LOADTEST:-False}
  190. ports:
  191. - "5109:80"
  192. sql.data:
  193. environment:
  194. - SA_PASSWORD=Pass@word
  195. - ACCEPT_EULA=Y
  196. ports:
  197. - "5433:1433"
  198. nosql.data:
  199. ports:
  200. - "27017:27017"
  201. basket.data:
  202. ports:
  203. - "6379:6379"
  204. rabbitmq:
  205. ports:
  206. - "15672:15672"
  207. - "5672:5672"
  208. apigw:
  209. environment:
  210. - ASPNETCORE_ENVIRONMENT=Development
  211. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  212. ports:
  213. - "5200:80"
  214. purchasebff:
  215. environment:
  216. - ASPNETCORE_ENVIRONMENT=Development
  217. - urls__basket=http://basket.api
  218. - urls__catalog=http://catalog.api
  219. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  220. ports:
  221. - "5120:80"