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.

101 lines
4.3 KiB

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