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.1 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. version: '2'
  2. # The Production docker-compose file has to have the external/real IPs or DNS names for the services
  3. # This configuration has to be used when testing the Web apps and the Xamarin apps from remote machines/devices using the same WiFi, for instance.
  4. # ASPNETCORE_ENVIRONMENT=Development just to get errors while testing. Could be set to "Production"
  5. #
  6. # You need to start it with the following CLI command:
  7. # docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
  8. services:
  9. basket.api:
  10. environment:
  11. - ASPNETCORE_ENVIRONMENT=Development
  12. - ASPNETCORE_URLS=http://0.0.0.0:5103
  13. - ConnectionString=basket.data
  14. - identityUrl=http://identity.api:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  15. ports:
  16. - "5103:5103"
  17. catalog.api:
  18. environment:
  19. - ASPNETCORE_ENVIRONMENT=Development
  20. - ASPNETCORE_URLS=http://0.0.0.0:5101
  21. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
  22. - ExternalCatalogBaseUrl=http://${ESHOP_EXTERNAL_IP}:5101 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  23. ports:
  24. - "5101:5101"
  25. identity.api:
  26. environment:
  27. - ASPNETCORE_ENVIRONMENT=Development
  28. - ASPNETCORE_URLS=http://0.0.0.0:5105
  29. - SpaClient=http://${ESHOP_EXTERNAL_IP}:5104
  30. - ConnectionStrings__DefaultConnection=Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word
  31. - MvcClient=http://${ESHOP_EXTERNAL_IP}:5100 #Local: You need to open your host's firewall at range 5100-5105.
  32. ports:
  33. - "5105:5105"
  34. ordering.api:
  35. environment:
  36. - ASPNETCORE_ENVIRONMENT=Development
  37. - ASPNETCORE_URLS=http://0.0.0.0:5102
  38. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  39. - identityUrl=http://identity.api:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  40. ports:
  41. - "5102:5102"
  42. webspa:
  43. environment:
  44. - ASPNETCORE_ENVIRONMENT=Development
  45. - ASPNETCORE_URLS=http://0.0.0.0:5104
  46. - CatalogUrl=http://${ESHOP_EXTERNAL_IP}:5101
  47. - OrderingUrl=http://${ESHOP_EXTERNAL_IP}:5102
  48. - IdentityUrl=http://${ESHOP_EXTERNAL_IP}:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  49. - BasketUrl=http://${ESHOP_EXTERNAL_IP}:5103
  50. ports:
  51. - "5104:5104"
  52. webmvc:
  53. environment:
  54. - ASPNETCORE_ENVIRONMENT=Development
  55. - ASPNETCORE_URLS=http://0.0.0.0:5100
  56. - CatalogUrl=http://catalog.api:5101
  57. - OrderingUrl=http://ordering.api:5102
  58. - IdentityUrl=http://${ESHOP_EXTERNAL_IP}:5105 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
  59. - BasketUrl=http://basket.api:5103
  60. ports:
  61. - "5100:5100"
  62. sql.data:
  63. environment:
  64. - SA_PASSWORD=Pass@word
  65. - ACCEPT_EULA=Y
  66. ports:
  67. - "5433:1433"