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.

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