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.

83 lines
3.8 KiB

  1. version: '2.1'
  2. # The Production docker-compose file has to have the external/real IPs or DNS names for the services
  3. # The ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
  4. # ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP=192.168.88.248
  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 when testing the Web apps and the Xamarin apps from remote machines/devices using the same WiFi, for instance.
  7. #
  8. # Set ASPNETCORE_ENVIRONMENT=Development to get errors while testing.
  9. #
  10. # You need to start it with the following CLI command:
  11. # docker-compose -f docker-compose-windows.yml -f docker-compose-windows.prod.yml up -d
  12. services:
  13. basket.api:
  14. environment:
  15. - ASPNETCORE_ENVIRONMENT=Production
  16. - ASPNETCORE_URLS=http://0.0.0.0:80
  17. - ConnectionString=basket.data
  18. - identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  19. ports:
  20. - "5103:5103"
  21. catalog.api:
  22. environment:
  23. - ASPNETCORE_ENVIRONMENT=Production
  24. - ASPNETCORE_URLS=http://0.0.0.0:80
  25. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
  26. - ExternalCatalogBaseUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  27. ports:
  28. - "5101:80"
  29. identity.api:
  30. environment:
  31. - ASPNETCORE_ENVIRONMENT=Production
  32. - ASPNETCORE_URLS=http://0.0.0.0:80
  33. - SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
  34. - ConnectionStrings__DefaultConnection=Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word
  35. - MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your host's firewall at range 5100-5105.
  36. ports:
  37. - "5105:80"
  38. ordering.api:
  39. environment:
  40. - ASPNETCORE_ENVIRONMENT=Production
  41. - ASPNETCORE_URLS=http://0.0.0.0:80
  42. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  43. - identityUrl=http://identity.api:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  44. ports:
  45. - "5102:80"
  46. webspa:
  47. environment:
  48. - ASPNETCORE_ENVIRONMENT=Production
  49. - ASPNETCORE_URLS=http://0.0.0.0
  50. - CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
  51. - OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  52. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  53. - BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  54. - CatalogUrlHC=http://catalog.api/hc
  55. - OrderingUrlHC=http://ordering.api/hc
  56. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  57. - BasketUrlHC=http://basket.api/hc
  58. ports:
  59. - "5104:80"
  60. webmvc:
  61. environment:
  62. - ASPNETCORE_ENVIRONMENT=Production
  63. - ASPNETCORE_URLS=http://0.0.0.0:80
  64. - CatalogUrl=http://catalog.api
  65. - OrderingUrl=http://ordering.api
  66. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  67. - BasketUrl=http://basket.api
  68. ports:
  69. - "5100:80"
  70. sql.data:
  71. environment:
  72. - SA_PASSWORD=Pass@word
  73. - ACCEPT_EULA=Y
  74. ports:
  75. - "5433:1433"