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.

346 lines
18 KiB

6 years ago
6 years ago
6 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. sql.data:
  9. environment:
  10. - SA_PASSWORD=Pass@word
  11. - ACCEPT_EULA=Y
  12. ports:
  13. - "5433:1433" # Important: In a production environment your should remove the external port
  14. nosql.data:
  15. ports:
  16. - "27017:27017" # Important: In a production environment your should remove the external port
  17. basket.data:
  18. ports:
  19. - "6379:6379" # Important: In a production environment your should remove the external port
  20. rabbitmq:
  21. ports:
  22. - "15672:15672" # Important: In a production environment your should remove the external port
  23. - "5672:5672" # Important: In a production environment your should remove the external port
  24. identity.api:
  25. environment:
  26. - ASPNETCORE_ENVIRONMENT=Development
  27. - ASPNETCORE_URLS=http://0.0.0.0:80;https://+:443
  28. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104;https://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:4104
  29. - 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
  30. - ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  31. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100;https://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:4100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  32. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  33. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  34. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  35. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  36. - MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
  37. - WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
  38. - UseCustomizationData=True
  39. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  40. - OrchestratorType=${ORCHESTRATOR_TYPE}
  41. ports:
  42. - "5105:80"
  43. - "4105:443"
  44. volumes:
  45. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  46. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:rw
  47. basket.api:
  48. environment:
  49. - ASPNETCORE_ENVIRONMENT=Development
  50. - ASPNETCORE_URLS=http://0.0.0.0:80
  51. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
  52. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  53. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  54. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  55. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  56. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  57. - AzureServiceBusEnabled=False
  58. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  59. - OrchestratorType=${ORCHESTRATOR_TYPE}
  60. - UseLoadTest=${USE_LOADTEST:-False}
  61. ports:
  62. - "5103:80" # Important: In a production environment your should remove the external port (5103) kept here for microservice debugging purposes.
  63. # The API Gateway redirects and access through the internal port (80).
  64. catalog.api:
  65. environment:
  66. - ASPNETCORE_ENVIRONMENT=Development
  67. - ASPNETCORE_URLS=http://0.0.0.0:80
  68. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  69. - 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.
  70. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  71. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  72. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  73. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  74. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  75. - UseCustomizationData=True
  76. - AzureServiceBusEnabled=False
  77. - AzureStorageEnabled=False
  78. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  79. - OrchestratorType=${ORCHESTRATOR_TYPE}
  80. ports:
  81. - "5101:80" # Important: In a production environment your should remove the external port (5101) kept here for microservice debugging purposes.
  82. # The API Gateway redirects and access through the internal port (80).
  83. ordering.api:
  84. environment:
  85. - ASPNETCORE_ENVIRONMENT=Development
  86. - ASPNETCORE_URLS=http://0.0.0.0:80
  87. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  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. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  91. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  92. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  93. - UseCustomizationData=True
  94. - AzureServiceBusEnabled=False
  95. - CheckUpdateTime=30000
  96. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  97. - OrchestratorType=${ORCHESTRATOR_TYPE}
  98. - UseLoadTest=${USE_LOADTEST:-False}
  99. ports:
  100. - "5102:80" # Important: In a production environment your should remove the external port (5102) kept here for microservice debugging purposes.
  101. # The API Gateway redirects and access through the internal port (80).
  102. ordering.backgroundtasks:
  103. environment:
  104. - ASPNETCORE_ENVIRONMENT=Development
  105. - ASPNETCORE_URLS=http://0.0.0.0:80
  106. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  107. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  108. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  109. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  110. - UseCustomizationData=True
  111. - AzureServiceBusEnabled=False
  112. - CheckUpdateTime=30000
  113. - GracePeriodTime=1
  114. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  115. - OrchestratorType=${ORCHESTRATOR_TYPE}
  116. - UseLoadTest=${USE_LOADTEST:-False}
  117. ports:
  118. - "5111:80"
  119. marketing.api:
  120. environment:
  121. - ASPNETCORE_ENVIRONMENT=Development
  122. - ASPNETCORE_URLS=http://0.0.0.0:80
  123. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  124. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  125. - MongoDatabase=MarketingDb
  126. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  127. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  128. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  129. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  130. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  131. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  132. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  133. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  134. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  135. - AzureServiceBusEnabled=False
  136. - AzureStorageEnabled=False
  137. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  138. - OrchestratorType=${ORCHESTRATOR_TYPE}
  139. - UseLoadTest=${USE_LOADTEST:-False}
  140. ports:
  141. - "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
  142. # The API Gateway redirects and access through the internal port (80).
  143. payment.api:
  144. environment:
  145. - ASPNETCORE_ENVIRONMENT=Development
  146. - ASPNETCORE_URLS=http://0.0.0.0:80
  147. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  148. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  149. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  150. - AzureServiceBusEnabled=False
  151. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  152. - OrchestratorType=${ORCHESTRATOR_TYPE}
  153. ports:
  154. - "5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
  155. # The API Gateway redirects and access through the internal port (80).
  156. locations.api:
  157. environment:
  158. - ASPNETCORE_ENVIRONMENT=Development
  159. - ASPNETCORE_URLS=http://0.0.0.0:80
  160. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  161. - Database=LocationsDb
  162. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  163. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  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. - UseLoadTest=${USE_LOADTEST:-False}
  171. ports:
  172. - "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
  173. # The API Gateway redirects and access through the internal port (80).
  174. mobileshoppingapigw:
  175. environment:
  176. - ASPNETCORE_ENVIRONMENT=Development
  177. - ASPNETCORE_URLS=http://0.0.0.0:80
  178. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  179. ports:
  180. - "5200:80"
  181. volumes:
  182. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
  183. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
  184. - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  185. mobilemarketingapigw:
  186. environment:
  187. - ASPNETCORE_ENVIRONMENT=Development
  188. - ASPNETCORE_URLS=http://0.0.0.0:80
  189. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  190. ports:
  191. - "5201:80"
  192. volumes:
  193. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
  194. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
  195. - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  196. webshoppingapigw:
  197. environment:
  198. - ASPNETCORE_ENVIRONMENT=Development
  199. - ASPNETCORE_URLS=http://+:80;https://+:443
  200. #- ASPNETCORE_URLS=http://0.0.0.0:80
  201. - ASPNETCORE_HTTPS_PORT=4202
  202. - ASPNETCORE_Kestrel__Certificates__Development__Password="RH@ssl2018"
  203. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  204. ports:
  205. - "5202:80"
  206. - "4202:443"
  207. volumes:
  208. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  209. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:rw
  210. - ./src/ApiGateways/Web.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}:rw
  211. webmarketingapigw:
  212. environment:
  213. - ASPNETCORE_ENVIRONMENT=Development
  214. - ASPNETCORE_URLS=http://0.0.0.0:80
  215. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  216. ports:
  217. - "5203:80"
  218. volumes:
  219. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  220. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
  221. - ./src/ApiGateways/Web.Bff.Marketing/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  222. mobileshoppingagg:
  223. environment:
  224. - ASPNETCORE_ENVIRONMENT=Development
  225. - ASPNETCORE_URLS=http://0.0.0.0:80
  226. - urls__basket=http://basket.api
  227. - urls__catalog=http://catalog.api
  228. - urls__orders=http://ordering.api
  229. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  230. ports:
  231. - "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
  232. # The API Gateway redirects and access through the internal port (80).
  233. webshoppingagg:
  234. environment:
  235. - ASPNETCORE_ENVIRONMENT=Development
  236. - ASPNETCORE_URLS=http://0.0.0.0:80
  237. - urls__basket=http://basket.api
  238. - urls__catalog=http://catalog.api
  239. - urls__orders=http://ordering.api
  240. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  241. ports:
  242. - "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
  243. # The API Gateway redirects and access through the internal port (80).
  244. ordering.signalrhub:
  245. environment:
  246. - ASPNETCORE_ENVIRONMENT=Development
  247. - ASPNETCORE_URLS=http://0.0.0.0:80
  248. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  249. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  250. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  251. - AzureServiceBusEnabled=False
  252. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  253. - OrchestratorType=${ORCHESTRATOR_TYPE}
  254. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  255. ports:
  256. - "5112:80"
  257. webstatus:
  258. environment:
  259. - ASPNETCORE_ENVIRONMENT=Development
  260. - ASPNETCORE_URLS=http://0.0.0.0:80
  261. - CatalogUrl=http://catalog.api/hc
  262. - OrderingUrl=http://ordering.api/hc
  263. - OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
  264. - BasketUrl=http://basket.api/hc
  265. - IdentityUrl=http://identity.api/hc
  266. - LocationsUrl=http://locations.api/hc
  267. - MarketingUrl=http://marketing.api/hc
  268. - PaymentUrl=http://payment.api/hc
  269. - mvc=http://webmvc/hc
  270. - spa=http://webspa/hc
  271. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  272. - OrchestratorType=${ORCHESTRATOR_TYPE}
  273. ports:
  274. - "5107:80"
  275. webspa:
  276. environment:
  277. - ASPNETCORE_ENVIRONMENT=Development
  278. - ASPNETCORE_URLS=http://+:80;https://+:443
  279. - 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.
  280. - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  281. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
  282. - CatalogUrlHC=http://catalog.api/hc
  283. - OrderingUrlHC=http://ordering.api/hc
  284. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  285. - BasketUrlHC=http://basket.api/hc
  286. - MarketingUrlHC=http://marketing.api/hc
  287. - PaymentUrlHC=http://payment.api/hc
  288. - UseCustomizationData=True
  289. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  290. - OrchestratorType=${ORCHESTRATOR_TYPE}
  291. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  292. ports:
  293. - "5104:80"
  294. - "4104:443"
  295. volumes:
  296. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  297. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:rw
  298. webmvc:
  299. environment:
  300. - ASPNETCORE_ENVIRONMENT=Development
  301. - ASPNETCORE_URLS=http://+:80;https://+:443
  302. - PurchaseUrl=http://webshoppingapigw
  303. - 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.
  304. - MarketingUrl=http://webmarketingapigw
  305. - CatalogUrlHC=http://catalog.api/hc
  306. - OrderingUrlHC=http://ordering.api/hc
  307. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  308. - BasketUrlHC=http://basket.api/hc
  309. - MarketingUrlHC=http://marketing.api/hc
  310. - PaymentUrlHC=http://payment.api/hc
  311. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  312. - UseCustomizationData=True
  313. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  314. - OrchestratorType=${ORCHESTRATOR_TYPE}
  315. - UseLoadTest=${USE_LOADTEST:-False}
  316. ports:
  317. - "5100:80"
  318. - "4100:443"
  319. volumes:
  320. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  321. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:rw