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.

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