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.

241 lines
11 KiB

7 years ago
  1. version: '3.3'
  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. - UseCustomizationData=True
  55. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  56. - OrchestratorType=${ORCHESTRATOR_TYPE}
  57. ports:
  58. - "5105:80"
  59. ordering.api:
  60. environment:
  61. - ASPNETCORE_ENVIRONMENT=Development
  62. - ASPNETCORE_URLS=http://0.0.0.0:80
  63. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  64. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  65. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  66. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  67. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  68. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  69. - UseCustomizationData=True
  70. - AzureServiceBusEnabled=False
  71. - CheckUpdateTime=30000
  72. - GracePeriodTime=1
  73. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  74. - OrchestratorType=${ORCHESTRATOR_TYPE}
  75. - UseLoadTest=${USE_LOADTEST:-False}
  76. ports:
  77. - "5102:80"
  78. ordering.backgroundtasks:
  79. environment:
  80. - ASPNETCORE_ENVIRONMENT=Development
  81. - ASPNETCORE_URLS=http://0.0.0.0:80
  82. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  83. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  84. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  85. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  86. - UseCustomizationData=True
  87. - AzureServiceBusEnabled=False
  88. - CheckUpdateTime=30000
  89. - GracePeriodTime=1
  90. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  91. - OrchestratorType=${ORCHESTRATOR_TYPE}
  92. - UseLoadTest=${USE_LOADTEST:-False}
  93. ports:
  94. - "5111:80"
  95. marketing.api:
  96. environment:
  97. - ASPNETCORE_ENVIRONMENT=Development
  98. - ASPNETCORE_URLS=http://0.0.0.0:80
  99. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  100. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  101. - MongoDatabase=MarketingDb
  102. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  103. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  104. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  105. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  106. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  107. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  108. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  109. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  110. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  111. - AzureServiceBusEnabled=False
  112. - AzureStorageEnabled=False
  113. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  114. - OrchestratorType=${ORCHESTRATOR_TYPE}
  115. - UseLoadTest=${USE_LOADTEST:-False}
  116. ports:
  117. - "5110:80"
  118. webspa:
  119. environment:
  120. - ASPNETCORE_ENVIRONMENT=Development
  121. - ASPNETCORE_URLS=http://0.0.0.0:80
  122. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  123. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  124. - 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.
  125. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  126. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  127. - LocationsUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  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. ports:
  138. - "5104:80"
  139. webmvc:
  140. environment:
  141. - ASPNETCORE_ENVIRONMENT=Development
  142. - ASPNETCORE_URLS=http://0.0.0.0:80
  143. - CatalogUrl=http://catalog.api
  144. - OrderingUrl=http://ordering.api
  145. - BasketUrl=http://basket.api
  146. - LocationsUrl=http://locations.api
  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://marketing.api
  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. - BasketUrl=http://basket.api/hc
  168. - IdentityUrl=http://identity.api/hc
  169. - LocationsUrl=http://locations.api/hc
  170. - MarketingUrl=http://marketing.api/hc
  171. - PaymentUrl=http://payment.api/hc
  172. - mvc=http://webmvc/hc
  173. - spa=http://webspa/hc
  174. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  175. - OrchestratorType=${ORCHESTRATOR_TYPE}
  176. ports:
  177. - "5107:80"
  178. payment.api:
  179. environment:
  180. - ASPNETCORE_ENVIRONMENT=Development
  181. - ASPNETCORE_URLS=http://0.0.0.0:80
  182. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  183. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  184. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  185. - AzureServiceBusEnabled=False
  186. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  187. - OrchestratorType=${ORCHESTRATOR_TYPE}
  188. ports:
  189. - "5108:80"
  190. locations.api:
  191. environment:
  192. - ASPNETCORE_ENVIRONMENT=Development
  193. - ASPNETCORE_URLS=http://0.0.0.0:80
  194. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  195. - Database=LocationsDb
  196. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  197. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  198. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  199. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  200. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  201. - AzureServiceBusEnabled=False
  202. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  203. - OrchestratorType=${ORCHESTRATOR_TYPE}
  204. - UseLoadTest=${USE_LOADTEST:-False}
  205. ports:
  206. - "5109:80"
  207. sql.data:
  208. environment:
  209. - SA_PASSWORD=Pass@word
  210. - ACCEPT_EULA=Y
  211. ports:
  212. - "5433:1433"
  213. nosql.data:
  214. ports:
  215. - "27017:27017"
  216. basket.data:
  217. ports:
  218. - "6379:6379"
  219. rabbitmq:
  220. ports:
  221. - "15672:15672"
  222. - "5672:5672"