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.

141 lines
6.6 KiB

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