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