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.

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