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.

301 lines
15 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. 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. - UseCustomizationData=True
  156. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  157. - OrchestratorType=${ORCHESTRATOR_TYPE}
  158. - UseLoadTest=${USE_LOADTEST:-False}
  159. ports:
  160. - "5100:80"
  161. webstatus:
  162. environment:
  163. - ASPNETCORE_ENVIRONMENT=Development
  164. - ASPNETCORE_URLS=http://0.0.0.0:80
  165. - CatalogUrl=http://catalog.api/hc
  166. - OrderingUrl=http://ordering.api/hc
  167. - OrderingBackgroundTasksUrl=http://ordering.backgroundtasks/hc
  168. - BasketUrl=http://basket.api/hc
  169. - IdentityUrl=http://identity.api/hc
  170. - LocationsUrl=http://locations.api/hc
  171. - MarketingUrl=http://marketing.api/hc
  172. - PaymentUrl=http://payment.api/hc
  173. - mvc=http://webmvc/hc
  174. - spa=http://webspa/hc
  175. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  176. - OrchestratorType=${ORCHESTRATOR_TYPE}
  177. ports:
  178. - "5107:80"
  179. payment.api:
  180. environment:
  181. - ASPNETCORE_ENVIRONMENT=Development
  182. - ASPNETCORE_URLS=http://0.0.0.0:80
  183. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  184. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  185. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  186. - AzureServiceBusEnabled=False
  187. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  188. - OrchestratorType=${ORCHESTRATOR_TYPE}
  189. ports:
  190. - "5108:80" # Important: In a production environment your should remove the external port (5108) kept here for microservice debugging purposes.
  191. # The API Gateway redirects and access through the internal port (80).
  192. locations.api:
  193. environment:
  194. - ASPNETCORE_ENVIRONMENT=Development
  195. - ASPNETCORE_URLS=http://0.0.0.0:80
  196. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  197. - Database=LocationsDb
  198. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  199. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  200. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  201. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  202. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  203. - AzureServiceBusEnabled=False
  204. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  205. - OrchestratorType=${ORCHESTRATOR_TYPE}
  206. - UseLoadTest=${USE_LOADTEST:-False}
  207. ports:
  208. - "5109:80" # Important: In a production environment your should remove the external port (5109) kept here for microservice debugging purposes.
  209. # The API Gateway redirects and access through the internal port (80).
  210. sql.data:
  211. environment:
  212. - SA_PASSWORD=Pass@word
  213. - ACCEPT_EULA=Y
  214. ports:
  215. - "5433:1433" # Important: In a production environment your should remove the external port
  216. nosql.data:
  217. ports:
  218. - "27017:27017" # Important: In a production environment your should remove the external port
  219. basket.data:
  220. ports:
  221. - "6379:6379" # Important: In a production environment your should remove the external port
  222. rabbitmq:
  223. ports:
  224. - "15672:15672" # Important: In a production environment your should remove the external port
  225. - "5672:5672" # Important: In a production environment your should remove the external port
  226. mobileshoppingapigw:
  227. environment:
  228. - ASPNETCORE_ENVIRONMENT=Development
  229. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  230. ports:
  231. - "5200:80"
  232. volumes:
  233. - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
  234. mobilemarketingapigw:
  235. environment:
  236. - ASPNETCORE_ENVIRONMENT=Development
  237. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  238. ports:
  239. - "5201:80"
  240. volumes:
  241. - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
  242. webshoppingapigw:
  243. environment:
  244. - ASPNETCORE_ENVIRONMENT=Development
  245. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  246. ports:
  247. - "5202:80"
  248. volumes:
  249. - ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
  250. webmarketingapigw:
  251. environment:
  252. - ASPNETCORE_ENVIRONMENT=Development
  253. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  254. ports:
  255. - "5203:80"
  256. volumes:
  257. - ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
  258. mobileshoppingagg:
  259. environment:
  260. - ASPNETCORE_ENVIRONMENT=Development
  261. - urls__basket=http://basket.api
  262. - urls__catalog=http://catalog.api
  263. - urls__orders=http://ordering.api
  264. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  265. ports:
  266. - "5120:80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
  267. # The API Gateway redirects and access through the internal port (80).
  268. webshoppingagg:
  269. environment:
  270. - ASPNETCORE_ENVIRONMENT=Development
  271. - urls__basket=http://basket.api
  272. - urls__catalog=http://catalog.api
  273. - urls__orders=http://ordering.api
  274. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  275. ports:
  276. - "5121:80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
  277. # The API Gateway redirects and access through the internal port (80).