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.

319 lines
16 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. ordering.backgroundtasks:
  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. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  89. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  90. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  91. - UseCustomizationData=True
  92. - AzureServiceBusEnabled=False
  93. - CheckUpdateTime=30000
  94. - GracePeriodTime=1
  95. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  96. - OrchestratorType=${ORCHESTRATOR_TYPE}
  97. - UseLoadTest=${USE_LOADTEST:-False}
  98. ports:
  99. - "5111:80"
  100. marketing.api:
  101. environment:
  102. - ASPNETCORE_ENVIRONMENT=Development
  103. - ASPNETCORE_URLS=http://0.0.0.0:80
  104. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  105. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  106. - MongoDatabase=MarketingDb
  107. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  108. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  109. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  110. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  111. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  112. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  113. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  114. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  115. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  116. - AzureServiceBusEnabled=False
  117. - AzureStorageEnabled=False
  118. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  119. - OrchestratorType=${ORCHESTRATOR_TYPE}
  120. - UseLoadTest=${USE_LOADTEST:-False}
  121. ports:
  122. - "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
  123. # The API Gateway redirects and access through the internal port (80).
  124. webspa:
  125. environment:
  126. - ASPNETCORE_ENVIRONMENT=Development
  127. - ASPNETCORE_URLS=http://0.0.0.0:80
  128. - 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.
  129. - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  130. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
  131. - CatalogUrlHC=http://catalog.api/hc
  132. - OrderingUrlHC=http://ordering.api/hc
  133. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  134. - BasketUrlHC=http://basket.api/hc
  135. - MarketingUrlHC=http://marketing.api/hc
  136. - PaymentUrlHC=http://payment.api/hc
  137. - UseCustomizationData=True
  138. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  139. - OrchestratorType=${ORCHESTRATOR_TYPE}
  140. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  141. ports:
  142. - "5104:80"
  143. webmvc:
  144. environment:
  145. - ASPNETCORE_ENVIRONMENT=Development
  146. - ASPNETCORE_URLS=http://0.0.0.0:80
  147. - PurchaseUrl=http://webshoppingapigw
  148. - 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.
  149. - MarketingUrl=http://webmarketingapigw
  150. - CatalogUrlHC=http://catalog.api/hc
  151. - OrderingUrlHC=http://ordering.api/hc
  152. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  153. - BasketUrlHC=http://basket.api/hc
  154. - MarketingUrlHC=http://marketing.api/hc
  155. - PaymentUrlHC=http://payment.api/hc
  156. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  157. - UseCustomizationData=True
  158. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  159. - OrchestratorType=${ORCHESTRATOR_TYPE}
  160. - UseLoadTest=${USE_LOADTEST:-False}
  161. ports:
  162. - "5100:80"
  163. webstatus:
  164. environment:
  165. - ASPNETCORE_ENVIRONMENT=Development
  166. - ASPNETCORE_URLS=http://0.0.0.0:80
  167. - CatalogUrl=http://catalog.api/hc
  168. - OrderingUrl=http://ordering.api/hc
  169. - OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
  170. - BasketUrl=http://basket.api/hc
  171. - IdentityUrl=http://identity.api/hc
  172. - LocationsUrl=http://locations.api/hc
  173. - MarketingUrl=http://marketing.api/hc
  174. - PaymentUrl=http://payment.api/hc
  175. - mvc=http://webmvc/hc
  176. - spa=http://webspa/hc
  177. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  178. - OrchestratorType=${ORCHESTRATOR_TYPE}
  179. ports:
  180. - "5107:80"
  181. payment.api:
  182. environment:
  183. - ASPNETCORE_ENVIRONMENT=Development
  184. - ASPNETCORE_URLS=http://0.0.0.0:80
  185. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  186. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  187. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  188. - AzureServiceBusEnabled=False
  189. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  190. - OrchestratorType=${ORCHESTRATOR_TYPE}
  191. ports:
  192. - "5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
  193. # The API Gateway redirects and access through the internal port (80).
  194. locations.api:
  195. environment:
  196. - ASPNETCORE_ENVIRONMENT=Development
  197. - ASPNETCORE_URLS=http://0.0.0.0:80
  198. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  199. - Database=LocationsDb
  200. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  201. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  202. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  203. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  204. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  205. - AzureServiceBusEnabled=False
  206. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  207. - OrchestratorType=${ORCHESTRATOR_TYPE}
  208. - UseLoadTest=${USE_LOADTEST:-False}
  209. ports:
  210. - "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
  211. # The API Gateway redirects and access through the internal port (80).
  212. sql.data:
  213. environment:
  214. - SA_PASSWORD=Pass@word
  215. - ACCEPT_EULA=Y
  216. ports:
  217. - "5433:1433" # Important: In a production environment your should remove the external port
  218. nosql.data:
  219. ports:
  220. - "27017:27017" # Important: In a production environment your should remove the external port
  221. basket.data:
  222. ports:
  223. - "6379:6379" # Important: In a production environment your should remove the external port
  224. rabbitmq:
  225. ports:
  226. - "15672:15672" # Important: In a production environment your should remove the external port
  227. - "5672:5672" # Important: In a production environment your should remove the external port
  228. mobileshoppingapigw:
  229. environment:
  230. - ASPNETCORE_ENVIRONMENT=Development
  231. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  232. ports:
  233. - "5200:80"
  234. volumes:
  235. - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
  236. mobilemarketingapigw:
  237. environment:
  238. - ASPNETCORE_ENVIRONMENT=Development
  239. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  240. ports:
  241. - "5201:80"
  242. volumes:
  243. - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
  244. webshoppingapigw:
  245. environment:
  246. - ASPNETCORE_ENVIRONMENT=Development
  247. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  248. ports:
  249. - "5202:80"
  250. volumes:
  251. - ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
  252. webmarketingapigw:
  253. environment:
  254. - ASPNETCORE_ENVIRONMENT=Development
  255. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  256. ports:
  257. - "5203:80"
  258. volumes:
  259. - ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
  260. mobileshoppingagg:
  261. environment:
  262. - ASPNETCORE_ENVIRONMENT=Development
  263. - urls__basket=http://basket.api
  264. - urls__catalog=http://catalog.api
  265. - urls__orders=http://ordering.api
  266. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  267. ports:
  268. - "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
  269. # The API Gateway redirects and access through the internal port (80).
  270. webshoppingagg:
  271. environment:
  272. - ASPNETCORE_ENVIRONMENT=Development
  273. - urls__basket=http://basket.api
  274. - urls__catalog=http://catalog.api
  275. - urls__orders=http://ordering.api
  276. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  277. ports:
  278. - "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
  279. # The API Gateway redirects and access through the internal port (80).
  280. ordering.signalrhub:
  281. environment:
  282. - ASPNETCORE_ENVIRONMENT=Development
  283. - ASPNETCORE_URLS=http://0.0.0.0:80
  284. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  285. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  286. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  287. - AzureServiceBusEnabled=False
  288. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  289. - OrchestratorType=${ORCHESTRATOR_TYPE}
  290. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  291. ports:
  292. - "5112:80"