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