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.

163 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. 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. ports:
  17. - "5103:80"
  18. catalog.api:
  19. environment:
  20. - ASPNETCORE_ENVIRONMENT=Development
  21. - ASPNETCORE_URLS=http://0.0.0.0:80
  22. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  23. - 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.
  24. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  25. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  26. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  27. - UseCustomizationData=True
  28. ports:
  29. - "5101:80"
  30. identity.api:
  31. environment:
  32. - ASPNETCORE_ENVIRONMENT=Development
  33. - ASPNETCORE_URLS=http://0.0.0.0:80
  34. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  35. - 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
  36. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  37. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  38. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  39. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  40. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  41. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  42. - UseCustomizationData=True
  43. ports:
  44. - "5105:80"
  45. ordering.api:
  46. environment:
  47. - ASPNETCORE_ENVIRONMENT=Development
  48. - ASPNETCORE_URLS=http://0.0.0.0:80
  49. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  50. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  51. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  52. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  53. - UseCustomizationData=True
  54. ports:
  55. - "5102:80"
  56. marketing.api:
  57. environment:
  58. - ASPNETCORE_ENVIRONMENT=Development
  59. - ASPNETCORE_URLS=http://0.0.0.0:80
  60. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  61. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  62. - MongoDatabase=MarketingDb
  63. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  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. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  67. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  68. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  69. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  70. ports:
  71. - "5110:80"
  72. graceperiodmanager:
  73. environment:
  74. - ASPNETCORE_ENVIRONMENT=Development
  75. - ASPNETCORE_URLS=http://0.0.0.0:80
  76. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  77. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  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"