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.

111 lines
3.2 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:5102
  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:5103
  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:5103
  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. #10.0.75.1:5105
  43. ports:
  44. - "5105:5105"
  45. depends_on:
  46. - identity.data
  47. identity.data:
  48. image: microsoft/mssql-server-linux
  49. environment:
  50. - SA_PASSWORD=Pass@word
  51. - ACCEPT_EULA=Y
  52. ports:
  53. - "5433:1433"
  54. basket.api:
  55. image: eshop/basket.api
  56. environment:
  57. - ConnectionString=basket.data
  58. #- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
  59. - identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
  60. build:
  61. context: .
  62. dockerfile: Dockerfile
  63. ports:
  64. - "5103:5103"
  65. depends_on:
  66. - basket.data
  67. - identity.service
  68. basket.data:
  69. image: redis
  70. catalog.api:
  71. image: eshop/catalog.api
  72. environment:
  73. - ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word
  74. ports:
  75. - "5101:80"
  76. depends_on:
  77. - catalog.data
  78. catalog.data:
  79. image: microsoft/mssql-server-linux
  80. environment:
  81. - SA_PASSWORD=Pass@word
  82. - ACCEPT_EULA=Y
  83. ports:
  84. - "5434:1433"
  85. ordering.api:
  86. image: eshop/ordering.api
  87. environment:
  88. - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  89. - identityUrl=http://identity.service:5105 #local
  90. #- identityUrl=http://104.40.62.65:5105 #remote
  91. ports:
  92. - "5102:5102"
  93. depends_on:
  94. - ordering.data
  95. ordering.data:
  96. image: microsoft/mssql-server-linux
  97. environment:
  98. - SA_PASSWORD=Pass@word
  99. - ACCEPT_EULA=Y
  100. ports:
  101. - "5432:1433"