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.

168 lines
7.8 KiB

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