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.

108 lines
3.1 KiB

  1. version: '2'
  2. services:
  3. webmvc:
  4. image: eshop/web
  5. build:
  6. context: .
  7. dockerfile: Dockerfile
  8. environment:
  9. - CatalogUrl=http://catalog.api
  10. - OrderingUrl=http://ordering.api
  11. #- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
  12. - IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
  13. - BasketUrl=http://basket.api
  14. ports:
  15. - "5100:5100"
  16. depends_on:
  17. - identity.service
  18. - basket.api
  19. webspa:
  20. image: eshop/webspa
  21. build:
  22. context: .
  23. dockerfile: Dockerfile
  24. environment:
  25. - CatalogUrl=http://catalog.api
  26. - OrderingUrl=http://ordering.api
  27. #- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
  28. - IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
  29. - BasketUrl=http://basket.api
  30. ports:
  31. - "5104:80"
  32. depends_on:
  33. - basket.api
  34. - identity.service
  35. identity.service:
  36. image: eshop/identity
  37. environment:
  38. - SpaClient=http://localhost:5104
  39. - ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word
  40. #- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105.
  41. - MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker.
  42. ports:
  43. - "5105:5105"
  44. depends_on:
  45. - identity.data
  46. identity.data:
  47. image: microsoft/mssql-server-linux
  48. environment:
  49. - SA_PASSWORD=Pass@word
  50. - ACCEPT_EULA=Y
  51. ports:
  52. - "5433:1433"
  53. basket.api:
  54. image: eshop/basket.api
  55. environment:
  56. - ConnectionString=basket.data
  57. #- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
  58. - identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
  59. build:
  60. context: .
  61. dockerfile: Dockerfile
  62. ports:
  63. - "5103:5103"
  64. depends_on:
  65. - basket.data
  66. - identity.service
  67. basket.data:
  68. image: redis
  69. catalog.api:
  70. image: eshop/catalog.api
  71. environment:
  72. - ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word
  73. ports:
  74. - "5101:80"
  75. depends_on:
  76. - catalog.data
  77. catalog.data:
  78. image: microsoft/mssql-server-linux
  79. environment:
  80. - SA_PASSWORD=Pass@word
  81. - ACCEPT_EULA=Y
  82. ports:
  83. - "5434:1433"
  84. ordering.api:
  85. image: eshop/ordering.api
  86. environment:
  87. - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  88. ports:
  89. - "5102:80"
  90. depends_on:
  91. - ordering.data
  92. ordering.data:
  93. image: microsoft/mssql-server-linux
  94. environment:
  95. - SA_PASSWORD=Pass@word
  96. - ACCEPT_EULA=Y
  97. ports:
  98. - "5432:1433"