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.

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