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.

105 lines
4.6 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. sagamanager:
  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:5103
  16. - ConnectionString=basket.data
  17. - identityUrl=http://identity.api:5105 #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:5103"
  21. catalog.api:
  22. environment:
  23. - ASPNETCORE_ENVIRONMENT=Development
  24. - ASPNETCORE_URLS=http://0.0.0.0:5101
  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:5101"
  30. identity.api:
  31. environment:
  32. - ASPNETCORE_ENVIRONMENT=Development
  33. - ASPNETCORE_URLS=http://0.0.0.0:5105
  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:5105"
  40. ordering.api:
  41. environment:
  42. - ASPNETCORE_ENVIRONMENT=Development
  43. - ASPNETCORE_URLS=http://0.0.0.0:5102
  44. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  45. - identityUrl=http://identity.api:5105 #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:5102"
  49. webspa:
  50. environment:
  51. - ASPNETCORE_ENVIRONMENT=Development
  52. - ASPNETCORE_URLS=http://0.0.0.0:5104
  53. - CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
  54. - OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  55. - 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.
  56. - BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  57. ports:
  58. - "5104:5104"
  59. webmvc:
  60. environment:
  61. - ASPNETCORE_ENVIRONMENT=Development
  62. - ASPNETCORE_URLS=http://0.0.0.0:5100
  63. - CatalogUrl=http://catalog.api:5101
  64. - OrderingUrl=http://ordering.api:5102
  65. - BasketUrl=http://basket.api:5103
  66. - IdentityUrl=http://10.0.75.1:5105 #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
  67. #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  68. ports:
  69. - "5100:5100"
  70. sql.data:
  71. environment:
  72. - SA_PASSWORD=Pass@word
  73. - ACCEPT_EULA=Y
  74. ports:
  75. - "5433:1433"
  76. webstatus:
  77. environment:
  78. - ASPNETCORE_ENVIRONMENT=Development
  79. - ASPNETCORE_URLS=http://0.0.0.0:5107
  80. - CatalogUrl=http://catalog.api:5101/hc
  81. - OrderingUrl=http://ordering.api:5102/hc
  82. - BasketUrl=http://basket.api:5103/hc
  83. - IdentityUrl=http://identity.api:5105/hc
  84. - mvc=http://webmvc:5100/hc
  85. - spa=http://webspa:5104/hc
  86. ports:
  87. - "5107:5107"
  88. payment.api:
  89. environment:
  90. - ASPNETCORE_ENVIRONMENT=Development
  91. - ASPNETCORE_URLS=http://0.0.0.0:5108
  92. - EventBusConnection=rabbitmq
  93. ports:
  94. - "5108:5108"