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.

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