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.

273 lines
12 KiB

7 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"
  24. catalog.api:
  25. environment:
  26. - ASPNETCORE_ENVIRONMENT=Development
  27. - ASPNETCORE_URLS=http://0.0.0.0:80
  28. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  29. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5101/api/v1/catalog/items/[0]/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
  30. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  31. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  32. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  33. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  34. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  35. - UseCustomizationData=True
  36. - AzureServiceBusEnabled=False
  37. - AzureStorageEnabled=False
  38. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  39. - OrchestratorType=${ORCHESTRATOR_TYPE}
  40. ports:
  41. - "5101:80"
  42. identity.api:
  43. environment:
  44. - ASPNETCORE_ENVIRONMENT=Development
  45. - ASPNETCORE_URLS=http://0.0.0.0:80
  46. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  47. - 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
  48. - ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  49. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  50. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  51. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  52. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  53. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  54. - MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
  55. - WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
  56. - UseCustomizationData=True
  57. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  58. - OrchestratorType=${ORCHESTRATOR_TYPE}
  59. ports:
  60. - "5105:80"
  61. ordering.api:
  62. environment:
  63. - ASPNETCORE_ENVIRONMENT=Development
  64. - ASPNETCORE_URLS=http://0.0.0.0:80
  65. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  66. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  67. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  68. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  69. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  70. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  71. - UseCustomizationData=True
  72. - AzureServiceBusEnabled=False
  73. - CheckUpdateTime=30000
  74. - GracePeriodTime=1
  75. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  76. - OrchestratorType=${ORCHESTRATOR_TYPE}
  77. - UseLoadTest=${USE_LOADTEST:-False}
  78. ports:
  79. - "5102:80"
  80. marketing.api:
  81. environment:
  82. - ASPNETCORE_ENVIRONMENT=Development
  83. - ASPNETCORE_URLS=http://0.0.0.0:80
  84. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  85. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  86. - MongoDatabase=MarketingDb
  87. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  88. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  89. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  90. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  91. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  92. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  93. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  94. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  95. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  96. - AzureServiceBusEnabled=False
  97. - AzureStorageEnabled=False
  98. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  99. - OrchestratorType=${ORCHESTRATOR_TYPE}
  100. - UseLoadTest=${USE_LOADTEST:-False}
  101. ports:
  102. - "5110:80"
  103. webspa:
  104. environment:
  105. - ASPNETCORE_ENVIRONMENT=Development
  106. - ASPNETCORE_URLS=http://0.0.0.0:80
  107. - 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.
  108. - PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
  109. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
  110. - CatalogUrlHC=http://catalog.api/hc
  111. - OrderingUrlHC=http://ordering.api/hc
  112. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  113. - BasketUrlHC=http://basket.api/hc
  114. - MarketingUrlHC=http://marketing.api/hc
  115. - PaymentUrlHC=http://payment.api/hc
  116. - UseCustomizationData=True
  117. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  118. - OrchestratorType=${ORCHESTRATOR_TYPE}
  119. ports:
  120. - "5104:80"
  121. webmvc:
  122. environment:
  123. - ASPNETCORE_ENVIRONMENT=Development
  124. - ASPNETCORE_URLS=http://0.0.0.0:80
  125. - PurchaseUrl=http://webshoppingapigw
  126. - 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.
  127. - MarketingUrl=http://webmarketingapigw
  128. - CatalogUrlHC=http://catalog.api/hc
  129. - OrderingUrlHC=http://ordering.api/hc
  130. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  131. - BasketUrlHC=http://basket.api/hc
  132. - MarketingUrlHC=http://marketing.api/hc
  133. - PaymentUrlHC=http://payment.api/hc
  134. - UseCustomizationData=True
  135. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  136. - OrchestratorType=${ORCHESTRATOR_TYPE}
  137. - UseLoadTest=${USE_LOADTEST:-False}
  138. ports:
  139. - "5100:80"
  140. webstatus:
  141. environment:
  142. - ASPNETCORE_ENVIRONMENT=Development
  143. - ASPNETCORE_URLS=http://0.0.0.0:80
  144. - CatalogUrl=http://catalog.api/hc
  145. - OrderingUrl=http://ordering.api/hc
  146. - BasketUrl=http://basket.api/hc
  147. - IdentityUrl=http://identity.api/hc
  148. - LocationsUrl=http://locations.api/hc
  149. - MarketingUrl=http://marketing.api/hc
  150. - PaymentUrl=http://payment.api/hc
  151. - mvc=http://webmvc/hc
  152. - spa=http://webspa/hc
  153. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  154. - OrchestratorType=${ORCHESTRATOR_TYPE}
  155. ports:
  156. - "5107:80"
  157. payment.api:
  158. environment:
  159. - ASPNETCORE_ENVIRONMENT=Development
  160. - ASPNETCORE_URLS=http://0.0.0.0:80
  161. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  162. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  163. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  164. - AzureServiceBusEnabled=False
  165. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  166. - OrchestratorType=${ORCHESTRATOR_TYPE}
  167. ports:
  168. - "5108:80"
  169. locations.api:
  170. environment:
  171. - ASPNETCORE_ENVIRONMENT=Development
  172. - ASPNETCORE_URLS=http://0.0.0.0:80
  173. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  174. - Database=LocationsDb
  175. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  176. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  177. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  178. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  179. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  180. - AzureServiceBusEnabled=False
  181. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  182. - OrchestratorType=${ORCHESTRATOR_TYPE}
  183. - UseLoadTest=${USE_LOADTEST:-False}
  184. ports:
  185. - "5109:80"
  186. sql.data:
  187. environment:
  188. - SA_PASSWORD=Pass@word
  189. - ACCEPT_EULA=Y
  190. ports:
  191. - "5433:1433"
  192. nosql.data:
  193. ports:
  194. - "27017:27017"
  195. basket.data:
  196. ports:
  197. - "6379:6379"
  198. rabbitmq:
  199. ports:
  200. - "15672:15672"
  201. - "5672:5672"
  202. mobileshoppingapigw:
  203. environment:
  204. - ASPNETCORE_ENVIRONMENT=Development
  205. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  206. ports:
  207. - "5200:80"
  208. volumes:
  209. - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
  210. mobilemarketingapigw:
  211. environment:
  212. - ASPNETCORE_ENVIRONMENT=Development
  213. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  214. ports:
  215. - "5201:80"
  216. volumes:
  217. - ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
  218. webshoppingapigw:
  219. environment:
  220. - ASPNETCORE_ENVIRONMENT=Development
  221. - IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  222. ports:
  223. - "5202:80"
  224. volumes:
  225. - ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
  226. webmarketingapigw:
  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. - "5203:80"
  232. volumes:
  233. - ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
  234. mobileshoppingagg:
  235. environment:
  236. - ASPNETCORE_ENVIRONMENT=Development
  237. - urls__basket=http://basket.api
  238. - urls__catalog=http://catalog.api
  239. - urls__orders=http://ordering.api
  240. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  241. ports:
  242. - "5120:80"
  243. webshoppingagg:
  244. environment:
  245. - ASPNETCORE_ENVIRONMENT=Development
  246. - urls__basket=http://basket.api
  247. - urls__catalog=http://catalog.api
  248. - urls__orders=http://ordering.api
  249. - urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  250. ports:
  251. - "5121:80"