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.

166 lines
7.6 KiB

7 years ago
  1. version: '2.1'
  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. - AzureServiceBusEnabled=False
  17. ports:
  18. - "5103:80"
  19. catalog.api:
  20. environment:
  21. - ASPNETCORE_ENVIRONMENT=Development
  22. - ASPNETCORE_URLS=http://0.0.0.0:80
  23. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  24. - 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.
  25. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  26. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  27. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  28. - UseCustomizationData=True
  29. - AzureServiceBusEnabled=False
  30. - AzureStorageEnabled=False
  31. ports:
  32. - "5101:80"
  33. identity.api:
  34. environment:
  35. - ASPNETCORE_ENVIRONMENT=Development
  36. - ASPNETCORE_URLS=http://0.0.0.0:80
  37. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  38. - 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
  39. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  40. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  41. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  42. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  43. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  44. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  45. - UseCustomizationData=True
  46. ports:
  47. - "5105:80"
  48. ordering.api:
  49. environment:
  50. - ASPNETCORE_ENVIRONMENT=Development
  51. - ASPNETCORE_URLS=http://0.0.0.0:80
  52. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  53. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  54. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  55. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  56. - UseCustomizationData=True
  57. - AzureServiceBusEnabled=False
  58. - GracePeriodTime=1
  59. - CheckUpdateTime=30000
  60. ports:
  61. - "5102:80"
  62. marketing.api:
  63. environment:
  64. - ASPNETCORE_ENVIRONMENT=Development
  65. - ASPNETCORE_URLS=http://0.0.0.0:80
  66. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  67. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  68. - MongoDatabase=MarketingDb
  69. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  70. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  71. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  72. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  73. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  74. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  75. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  76. - AzureServiceBusEnabled=False
  77. - AzureStorageEnabled=False
  78. ports:
  79. - "5110:80"
  80. webspa:
  81. environment:
  82. - ASPNETCORE_ENVIRONMENT=Development
  83. - ASPNETCORE_URLS=http://0.0.0.0:80
  84. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  85. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  86. - 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.
  87. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  88. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  89. - CatalogUrlHC=http://catalog.api/hc
  90. - OrderingUrlHC=http://ordering.api/hc
  91. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  92. - BasketUrlHC=http://basket.api/hc
  93. - MarketingUrlHC=http://marketing.api/hc
  94. - UseCustomizationData=True
  95. ports:
  96. - "5104:80"
  97. webmvc:
  98. environment:
  99. - ASPNETCORE_ENVIRONMENT=Development
  100. - ASPNETCORE_URLS=http://0.0.0.0:80
  101. - CatalogUrl=http://catalog.api
  102. - OrderingUrl=http://ordering.api
  103. - BasketUrl=http://basket.api
  104. - IdentityUrl=http://10.0.75.1:5105
  105. - MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  106. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  107. - UseCustomizationData=True
  108. ports:
  109. - "5100:80"
  110. webstatus:
  111. environment:
  112. - ASPNETCORE_ENVIRONMENT=Development
  113. - ASPNETCORE_URLS=http://0.0.0.0:80
  114. - CatalogUrl=http://catalog.api/hc
  115. - OrderingUrl=http://ordering.api/hc
  116. - BasketUrl=http://basket.api/hc
  117. - IdentityUrl=http://identity.api/hc
  118. - LocationsUrl=http://locations.api/hc
  119. - MarketingUrl=http://marketing.api/hc
  120. - mvc=http://webmvc/hc
  121. - spa=http://webspa/hc
  122. ports:
  123. - "5107:80"
  124. payment.api:
  125. environment:
  126. - ASPNETCORE_ENVIRONMENT=Development
  127. - ASPNETCORE_URLS=http://0.0.0.0:80
  128. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  129. - AzureServiceBusEnabled=False
  130. ports:
  131. - "5108:80"
  132. locations.api:
  133. environment:
  134. - ASPNETCORE_ENVIRONMENT=Development
  135. - ASPNETCORE_URLS=http://0.0.0.0:80
  136. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  137. - Database=LocationsDb
  138. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  139. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  140. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  141. - AzureServiceBusEnabled=False
  142. ports:
  143. - "5109:80"
  144. sql.data:
  145. environment:
  146. - SA_PASSWORD=Pass@word
  147. - ACCEPT_EULA=Y
  148. ports:
  149. - "5433:1433"
  150. nosql.data:
  151. ports:
  152. - "27017:27017"