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.

328 lines
17 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. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  178. ports:
  179. - "5200:80"
  180. volumes:
  181. - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  182. mobilemarketingapigw:
  183. environment:
  184. - ASPNETCORE_ENVIRONMENT=Development
  185. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  186. ports:
  187. - "5201:80"
  188. volumes:
  189. - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  190. webshoppingapigw:
  191. environment:
  192. - ASPNETCORE_ENVIRONMENT=Development
  193. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  194. ports:
  195. - "5202:80"
  196. volumes:
  197. - ./src/ApiGateways/Web.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  198. webmarketingapigw:
  199. environment:
  200. - ASPNETCORE_ENVIRONMENT=Development
  201. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  202. ports:
  203. - "5203:80"
  204. volumes:
  205. - ./src/ApiGateways/Web.Bff.Marketing/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
  206. mobileshoppingagg:
  207. environment:
  208. - ASPNETCORE_ENVIRONMENT=Development
  209. - urls__basket=http://basket.api
  210. - urls__catalog=http://catalog.api
  211. - urls__orders=http://ordering.api
  212. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  213. ports:
  214. - "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
  215. # The API Gateway redirects and access through the internal port (80).
  216. webshoppingagg:
  217. environment:
  218. - ASPNETCORE_ENVIRONMENT=Development
  219. - urls__basket=http://basket.api
  220. - urls__catalog=http://catalog.api
  221. - urls__orders=http://ordering.api
  222. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  223. ports:
  224. - "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
  225. # The API Gateway redirects and access through the internal port (80).
  226. ordering.signalrhub:
  227. environment:
  228. - ASPNETCORE_ENVIRONMENT=Development
  229. - ASPNETCORE_URLS=http://0.0.0.0:80
  230. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  231. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  232. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  233. - AzureServiceBusEnabled=False
  234. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  235. - OrchestratorType=${ORCHESTRATOR_TYPE}
  236. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  237. ports:
  238. - "5112:80"
  239. webstatus:
  240. environment:
  241. - ASPNETCORE_ENVIRONMENT=Development
  242. - ASPNETCORE_URLS=http://0.0.0.0:80
  243. - CatalogUrl=http://catalog.api/hc
  244. - OrderingUrl=http://ordering.api/hc
  245. - OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
  246. - BasketUrl=http://basket.api/hc
  247. - IdentityUrl=http://identity.api/hc
  248. - LocationsUrl=http://locations.api/hc
  249. - MarketingUrl=http://marketing.api/hc
  250. - PaymentUrl=http://payment.api/hc
  251. - mvc=http://webmvc/hc
  252. - spa=http://webspa/hc
  253. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  254. - OrchestratorType=${ORCHESTRATOR_TYPE}
  255. ports:
  256. - "5107:80"
  257. webspa:
  258. environment:
  259. - ASPNETCORE_ENVIRONMENT=Development
  260. - ASPNETCORE_URLS=http://+:80;https://+:443
  261. - 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.
  262. - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  263. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
  264. - CatalogUrlHC=http://catalog.api/hc
  265. - OrderingUrlHC=http://ordering.api/hc
  266. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  267. - BasketUrlHC=http://basket.api/hc
  268. - MarketingUrlHC=http://marketing.api/hc
  269. - PaymentUrlHC=http://payment.api/hc
  270. - UseCustomizationData=True
  271. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  272. - OrchestratorType=${ORCHESTRATOR_TYPE}
  273. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  274. ports:
  275. - "5104:80"
  276. - "4104:443"
  277. volumes:
  278. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  279. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:rw
  280. webmvc:
  281. environment:
  282. - ASPNETCORE_ENVIRONMENT=Development
  283. - ASPNETCORE_URLS=http://+:80;https://+:443
  284. - PurchaseUrl=http://webshoppingapigw
  285. - 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.
  286. - MarketingUrl=http://webmarketingapigw
  287. - CatalogUrlHC=http://catalog.api/hc
  288. - OrderingUrlHC=http://ordering.api/hc
  289. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  290. - BasketUrlHC=http://basket.api/hc
  291. - MarketingUrlHC=http://marketing.api/hc
  292. - PaymentUrlHC=http://payment.api/hc
  293. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  294. - UseCustomizationData=True
  295. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  296. - OrchestratorType=${ORCHESTRATOR_TYPE}
  297. - UseLoadTest=${USE_LOADTEST:-False}
  298. ports:
  299. - "5100:80"
  300. - "4100:443"
  301. volumes:
  302. - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:rw
  303. - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:rw