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.

136 lines
5.7 KiB

7 years ago
  1. version: '2'
  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=rabbitmq
  12. basket.api:
  13. environment:
  14. - ASPNETCORE_ENVIRONMENT=Development
  15. - ASPNETCORE_URLS=http://0.0.0.0:80
  16. - ConnectionString=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=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=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
  26. - ExternalCatalogBaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
  27. - EventBusConnection=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=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=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=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=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word
  54. - MongoConnectionString=mongodb://nosql.data
  55. - MongoDatabase=MarketingDb
  56. - EventBusConnection=rabbitmq
  57. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
  58. ports:
  59. - "5110: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. - CatalogUrlHC=http://catalog.api/hc
  69. - OrderingUrlHC=http://ordering.api/hc
  70. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  71. - BasketUrlHC=http://basket.api/hc
  72. ports:
  73. - "5104:80"
  74. webmvc:
  75. environment:
  76. - ASPNETCORE_ENVIRONMENT=Development
  77. - ASPNETCORE_URLS=http://0.0.0.0:80
  78. - CatalogUrl=http://catalog.api
  79. - OrderingUrl=http://ordering.api
  80. - BasketUrl=http://basket.api
  81. - IdentityUrl=http://10.0.75.1:5105 #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  82. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  83. ports:
  84. - "5100:80"
  85. sql.data:
  86. environment:
  87. - SA_PASSWORD=Pass@word
  88. - ACCEPT_EULA=Y
  89. ports:
  90. - "5433:1433"
  91. nosql.data:
  92. ports:
  93. - "27017:27017"
  94. webstatus:
  95. environment:
  96. - ASPNETCORE_ENVIRONMENT=Development
  97. - ASPNETCORE_URLS=http://0.0.0.0:80
  98. - CatalogUrl=http://catalog.api/hc
  99. - OrderingUrl=http://ordering.api/hc
  100. - BasketUrl=http://basket.api/hc
  101. - IdentityUrl=http://identity.api/hc
  102. - mvc=http://webmvc/hc
  103. - spa=http://webspa/hc
  104. ports:
  105. - "5107:80"
  106. payment.api:
  107. environment:
  108. - ASPNETCORE_ENVIRONMENT=Development
  109. - ASPNETCORE_URLS=http://0.0.0.0:5108
  110. - EventBusConnection=rabbitmq
  111. ports:
  112. - "5108:80"
  113. locations.api:
  114. environment:
  115. - ASPNETCORE_ENVIRONMENT=Development
  116. - ASPNETCORE_URLS=http://0.0.0.0:80
  117. - ConnectionString=mongodb://nosql.data
  118. - Database=LocationsDb
  119. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
  120. - EventBusConnection=rabbitmq
  121. ports:
  122. - "5109:80"