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.

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