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.

154 lines
6.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. graceperiodmanager:
  9. environment:
  10. - ASPNETCORE_ENVIRONMENT=Development
  11. - ASPNETCORE_URLS=http://0.0.0.0:80
  12. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  13. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  14. basket.api:
  15. environment:
  16. - ASPNETCORE_ENVIRONMENT=Development
  17. - ASPNETCORE_URLS=http://0.0.0.0:80
  18. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
  19. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  20. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  21. ports:
  22. - "5103:80"
  23. catalog.api:
  24. environment:
  25. - ASPNETCORE_ENVIRONMENT=Development
  26. - ASPNETCORE_URLS=http://0.0.0.0:80
  27. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  28. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG:-http://localhost:5101/api/v1/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
  29. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  30. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  31. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  32. - UseCustomizationData=True
  33. ports:
  34. - "5101:80"
  35. identity.api:
  36. environment:
  37. - ASPNETCORE_ENVIRONMENT=Development
  38. - ASPNETCORE_URLS=http://0.0.0.0:80
  39. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  40. - 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
  41. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  42. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  43. - UseCustomizationData=True
  44. ports:
  45. - "5105:80"
  46. ordering.api:
  47. environment:
  48. - ASPNETCORE_ENVIRONMENT=Development
  49. - ASPNETCORE_URLS=http://0.0.0.0:80
  50. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  51. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  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. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  66. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/pic/}
  67. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  68. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  69. ports:
  70. - "5110:80"
  71. webspa:
  72. environment:
  73. - ASPNETCORE_ENVIRONMENT=Development
  74. - ASPNETCORE_URLS=http://0.0.0.0:80
  75. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  76. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  77. - 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.
  78. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  79. - MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  80. - CatalogUrlHC=http://catalog.api/hc
  81. - OrderingUrlHC=http://ordering.api/hc
  82. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  83. - BasketUrlHC=http://basket.api/hc
  84. - MarketingUrlHC=http://marketing.api/hc
  85. - UseCustomizationData=True
  86. ports:
  87. - "5104:80"
  88. webmvc:
  89. environment:
  90. - ASPNETCORE_ENVIRONMENT=Development
  91. - ASPNETCORE_URLS=http://0.0.0.0:80
  92. - CatalogUrl=http://catalog.api
  93. - OrderingUrl=http://ordering.api
  94. - BasketUrl=http://basket.api
  95. - IdentityUrl=http://10.0.75.1:5105
  96. - MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  97. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  98. - UseCustomizationData=True
  99. ports:
  100. - "5100:80"
  101. sql.data:
  102. environment:
  103. - SA_PASSWORD=Pass@word
  104. - ACCEPT_EULA=Y
  105. ports:
  106. - "5433:1433"
  107. nosql.data:
  108. ports:
  109. - "27017:27017"
  110. webstatus:
  111. environment:
  112. - ASPNETCORE_ENVIRONMENT=Development
  113. - ASPNETCORE_URLS=http://0.0.0.0:80
  114. - CatalogUrl=http://catalog.api/hc
  115. - OrderingUrl=http://ordering.api/hc
  116. - BasketUrl=http://basket.api/hc
  117. - IdentityUrl=http://identity.api/hc
  118. - LocationsUrl=http://locations.api/hc
  119. - MarketingUrl=http://marketing.api/hc
  120. - mvc=http://webmvc/hc
  121. - spa=http://webspa/hc
  122. ports:
  123. - "5107:80"
  124. payment.api:
  125. environment:
  126. - ASPNETCORE_ENVIRONMENT=Development
  127. - ASPNETCORE_URLS=http://0.0.0.0:5108
  128. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  129. ports:
  130. - "5108:80"
  131. locations.api:
  132. environment:
  133. - ASPNETCORE_ENVIRONMENT=Development
  134. - ASPNETCORE_URLS=http://0.0.0.0:80
  135. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  136. - Database=LocationsDb
  137. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  138. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  139. ports:
  140. - "5109:80"