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.

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