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.

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