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.

281 lines
14 KiB

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" # Important: In a production environment your should remove the external port (5103) kept here for microservice debugging purposes.
  24. # The API Gateway redirects and access through the internal port (80).
  25. catalog.api:
  26. environment:
  27. - ASPNETCORE_ENVIRONMENT=Development
  28. - ASPNETCORE_URLS=http://0.0.0.0:80
  29. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  30. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5202/api/v1/c/catalog/items/[0]/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
  31. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  32. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  33. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  34. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  35. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  36. - UseCustomizationData=True
  37. - AzureServiceBusEnabled=False
  38. - AzureStorageEnabled=False
  39. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  40. - OrchestratorType=${ORCHESTRATOR_TYPE}
  41. ports:
  42. - "5101:80" # Important: In a production environment your should remove the external port (5101) kept here for microservice debugging purposes.
  43. # The API Gateway redirects and access through the internal port (80).
  44. identity.api:
  45. environment:
  46. - ASPNETCORE_ENVIRONMENT=Development
  47. - ASPNETCORE_URLS=http://0.0.0.0:80
  48. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  49. - 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
  50. - ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  51. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  52. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  53. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  54. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  55. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  56. - MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
  57. - WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
  58. - UseCustomizationData=True
  59. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  60. - OrchestratorType=${ORCHESTRATOR_TYPE}
  61. ports:
  62. - "5105:80"
  63. ordering.api:
  64. environment:
  65. - ASPNETCORE_ENVIRONMENT=Development
  66. - ASPNETCORE_URLS=http://0.0.0.0:80
  67. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  68. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  69. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  70. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  71. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  72. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  73. - UseCustomizationData=True
  74. - AzureServiceBusEnabled=False
  75. - CheckUpdateTime=30000
  76. - GracePeriodTime=1
  77. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  78. - OrchestratorType=${ORCHESTRATOR_TYPE}
  79. - UseLoadTest=${USE_LOADTEST:-False}
  80. ports:
  81. - "5102:80" # Important: In a production environment your should remove the external port (5102) kept here for microservice debugging purposes.
  82. # The API Gateway redirects and access through the internal port (80).
  83. marketing.api:
  84. environment:
  85. - ASPNETCORE_ENVIRONMENT=Development
  86. - ASPNETCORE_URLS=http://0.0.0.0:80
  87. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  88. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  89. - MongoDatabase=MarketingDb
  90. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  91. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  92. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  93. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  94. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  95. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  96. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  97. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  98. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  99. - AzureServiceBusEnabled=False
  100. - AzureStorageEnabled=False
  101. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  102. - OrchestratorType=${ORCHESTRATOR_TYPE}
  103. - UseLoadTest=${USE_LOADTEST:-False}
  104. ports:
  105. - "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
  106. # The API Gateway redirects and access through the internal port (80).
  107. webspa:
  108. environment:
  109. - ASPNETCORE_ENVIRONMENT=Development
  110. - ASPNETCORE_URLS=http://0.0.0.0:80
  111. - 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.
  112. - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  113. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
  114. - CatalogUrlHC=http://catalog.api/hc
  115. - OrderingUrlHC=http://ordering.api/hc
  116. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  117. - BasketUrlHC=http://basket.api/hc
  118. - MarketingUrlHC=http://marketing.api/hc
  119. - PaymentUrlHC=http://payment.api/hc
  120. - UseCustomizationData=True
  121. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  122. - OrchestratorType=${ORCHESTRATOR_TYPE}
  123. ports:
  124. - "5104:80"
  125. webmvc:
  126. environment:
  127. - ASPNETCORE_ENVIRONMENT=Development
  128. - ASPNETCORE_URLS=http://0.0.0.0:80
  129. - PurchaseUrl=http://webshoppingapigw
  130. - 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.
  131. - MarketingUrl=http://webmarketingapigw
  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" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
  173. # The API Gateway redirects and access through the internal port (80).
  174. locations.api:
  175. environment:
  176. - ASPNETCORE_ENVIRONMENT=Development
  177. - ASPNETCORE_URLS=http://0.0.0.0:80
  178. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  179. - Database=LocationsDb
  180. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  181. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  182. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  183. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  184. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  185. - AzureServiceBusEnabled=False
  186. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  187. - OrchestratorType=${ORCHESTRATOR_TYPE}
  188. - UseLoadTest=${USE_LOADTEST:-False}
  189. ports:
  190. - "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
  191. # The API Gateway redirects and access through the internal port (80).
  192. sql.data:
  193. environment:
  194. - SA_PASSWORD=Pass@word
  195. - ACCEPT_EULA=Y
  196. ports:
  197. - "5433:1433" # Important: In a production environment your should remove the external port
  198. nosql.data:
  199. ports:
  200. - "27017:27017" # Important: In a production environment your should remove the external port
  201. basket.data:
  202. ports:
  203. - "6379:6379" # Important: In a production environment your should remove the external port
  204. rabbitmq:
  205. ports:
  206. - "15672:15672" # Important: In a production environment your should remove the external port
  207. - "5672:5672" # Important: In a production environment your should remove the external port
  208. mobileshoppingapigw:
  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. volumes:
  215. - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
  216. mobilemarketingapigw:
  217. environment:
  218. - ASPNETCORE_ENVIRONMENT=Development
  219. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  220. ports:
  221. - "5201:80"
  222. volumes:
  223. - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
  224. webshoppingapigw:
  225. environment:
  226. - ASPNETCORE_ENVIRONMENT=Development
  227. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  228. ports:
  229. - "5202:80"
  230. volumes:
  231. - ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
  232. webmarketingapigw:
  233. environment:
  234. - ASPNETCORE_ENVIRONMENT=Development
  235. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  236. ports:
  237. - "5203:80"
  238. volumes:
  239. - ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
  240. mobileshoppingagg:
  241. environment:
  242. - ASPNETCORE_ENVIRONMENT=Development
  243. - urls__basket=http://basket.api
  244. - urls__catalog=http://catalog.api
  245. - urls__orders=http://ordering.api
  246. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  247. ports:
  248. - "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
  249. # The API Gateway redirects and access through the internal port (80).
  250. webshoppingagg:
  251. environment:
  252. - ASPNETCORE_ENVIRONMENT=Development
  253. - urls__basket=http://basket.api
  254. - urls__catalog=http://catalog.api
  255. - urls__orders=http://ordering.api
  256. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  257. ports:
  258. - "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
  259. # The API Gateway redirects and access through the internal port (80).