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.

317 lines
16 KiB

6 years ago
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. 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. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  77. - OrchestratorType=${ORCHESTRATOR_TYPE}
  78. - UseLoadTest=${USE_LOADTEST:-False}
  79. ports:
  80. - "5102:80" # Important: In a production environment your should remove the external port (5102) kept here for microservice debugging purposes.
  81. # The API Gateway redirects and access through the internal port (80).
  82. ordering.backgroundtasks:
  83. environment:
  84. - ASPNETCORE_ENVIRONMENT=Development
  85. - ASPNETCORE_URLS=http://0.0.0.0:80
  86. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  87. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  88. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  89. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  90. - UseCustomizationData=True
  91. - AzureServiceBusEnabled=False
  92. - CheckUpdateTime=30000
  93. - GracePeriodTime=1
  94. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  95. - OrchestratorType=${ORCHESTRATOR_TYPE}
  96. - UseLoadTest=${USE_LOADTEST:-False}
  97. ports:
  98. - "5111:80"
  99. marketing.api:
  100. environment:
  101. - ASPNETCORE_ENVIRONMENT=Development
  102. - ASPNETCORE_URLS=http://0.0.0.0:80
  103. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  104. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  105. - MongoDatabase=MarketingDb
  106. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  107. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  108. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  109. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  110. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  111. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  112. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  113. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  114. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  115. - AzureServiceBusEnabled=False
  116. - AzureStorageEnabled=False
  117. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  118. - OrchestratorType=${ORCHESTRATOR_TYPE}
  119. - UseLoadTest=${USE_LOADTEST:-False}
  120. ports:
  121. - "5110:80" # Important: In a production environment your should remove the external port (5110) kept here for microservice debugging purposes.
  122. # The API Gateway redirects and access through the internal port (80).
  123. webspa:
  124. environment:
  125. - ASPNETCORE_ENVIRONMENT=Development
  126. - ASPNETCORE_URLS=http://0.0.0.0:80
  127. - 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.
  128. - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  129. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
  130. - CatalogUrlHC=http://catalog.api/hc
  131. - OrderingUrlHC=http://ordering.api/hc
  132. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  133. - BasketUrlHC=http://basket.api/hc
  134. - MarketingUrlHC=http://marketing.api/hc
  135. - PaymentUrlHC=http://payment.api/hc
  136. - UseCustomizationData=True
  137. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  138. - OrchestratorType=${ORCHESTRATOR_TYPE}
  139. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  140. ports:
  141. - "5104:80"
  142. webmvc:
  143. environment:
  144. - ASPNETCORE_ENVIRONMENT=Development
  145. - ASPNETCORE_URLS=http://0.0.0.0:80
  146. - PurchaseUrl=http://webshoppingapigw
  147. - 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.
  148. - MarketingUrl=http://webmarketingapigw
  149. - CatalogUrlHC=http://catalog.api/hc
  150. - OrderingUrlHC=http://ordering.api/hc
  151. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  152. - BasketUrlHC=http://basket.api/hc
  153. - MarketingUrlHC=http://marketing.api/hc
  154. - PaymentUrlHC=http://payment.api/hc
  155. - SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  156. - UseCustomizationData=True
  157. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  158. - OrchestratorType=${ORCHESTRATOR_TYPE}
  159. - UseLoadTest=${USE_LOADTEST:-False}
  160. ports:
  161. - "5100:80"
  162. webstatus:
  163. environment:
  164. - ASPNETCORE_ENVIRONMENT=Development
  165. - ASPNETCORE_URLS=http://0.0.0.0:80
  166. - CatalogUrl=http://catalog.api/hc
  167. - OrderingUrl=http://ordering.api/hc
  168. - OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
  169. - BasketUrl=http://basket.api/hc
  170. - IdentityUrl=http://identity.api/hc
  171. - LocationsUrl=http://locations.api/hc
  172. - MarketingUrl=http://marketing.api/hc
  173. - PaymentUrl=http://payment.api/hc
  174. - mvc=http://webmvc/hc
  175. - spa=http://webspa/hc
  176. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  177. - OrchestratorType=${ORCHESTRATOR_TYPE}
  178. ports:
  179. - "5107:80"
  180. payment.api:
  181. environment:
  182. - ASPNETCORE_ENVIRONMENT=Development
  183. - ASPNETCORE_URLS=http://0.0.0.0:80
  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. ports:
  191. - "5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
  192. # The API Gateway redirects and access through the internal port (80).
  193. locations.api:
  194. environment:
  195. - ASPNETCORE_ENVIRONMENT=Development
  196. - ASPNETCORE_URLS=http://0.0.0.0:80
  197. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  198. - Database=LocationsDb
  199. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  200. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  201. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  202. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  203. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  204. - AzureServiceBusEnabled=False
  205. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  206. - OrchestratorType=${ORCHESTRATOR_TYPE}
  207. - UseLoadTest=${USE_LOADTEST:-False}
  208. ports:
  209. - "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
  210. # The API Gateway redirects and access through the internal port (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:${ESHOP_OCELOT_VOLUME_SPEC:-/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:${ESHOP_OCELOT_VOLUME_SPEC:-/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:${ESHOP_OCELOT_VOLUME_SPEC:-/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:${ESHOP_OCELOT_VOLUME_SPEC:-/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"