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.

120 lines
5.2 KiB

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