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.

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