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.

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