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.

105 lines
2.2 KiB

  1. version: '2'
  2. services:
  3. webmvc:
  4. image: eshop/web${TAG}
  5. build:
  6. context: .
  7. dockerfile: Dockerfile
  8. environment:
  9. - CatalogUrl=http://catalog.api
  10. - OrderingUrl=http://ordering.api
  11. - IdentityUrl=http://identity.service
  12. - BasketUrl=http://basket.api
  13. ports:
  14. - "5100:80"
  15. depends_on:
  16. - catalog.api
  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://identity.service
  28. - BasketUrl=http://basket.api
  29. ports:
  30. - "5104:80"
  31. depends_on:
  32. - catalog.api
  33. - basket.api
  34. - identity.service
  35. catalog.api:
  36. image: eshop/catalog.api
  37. environment:
  38. - ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word
  39. expose:
  40. - "80"
  41. ports:
  42. - "5101:80"
  43. depends_on:
  44. - catalog.data
  45. catalog.data:
  46. image: microsoft/mssql-server-linux
  47. environment:
  48. - SA_PASSWORD=Pass@word
  49. - ACCEPT_EULA=Y
  50. ports:
  51. - "5434:1433"
  52. ordering.api:
  53. image: eshop/ordering.api
  54. environment:
  55. - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  56. ports:
  57. - "5102:80"
  58. extra_hosts:
  59. - "CESARDLBOOKVHD:10.0.75.1"
  60. depends_on:
  61. - ordering.data
  62. ordering.data:
  63. image: eshop/ordering.data.sqlserver.linux
  64. ports:
  65. - "5432:1433"
  66. identity.service:
  67. image: eshop/identity
  68. environment:
  69. - Spa:http://webspa
  70. expose:
  71. - "80"
  72. ports:
  73. - "5105:80"
  74. depends_on:
  75. - identity.data
  76. identity.data:
  77. image: microsoft/mssql-server-linux
  78. environment:
  79. - SA_PASSWORD=Pass@word
  80. - ACCEPT_EULA=Y
  81. ports:
  82. - "5433:1433"
  83. basket.api:
  84. image: eshop/basket.api
  85. environment:
  86. - ConnectionString=basket.data
  87. build:
  88. context: .
  89. dockerfile: Dockerfile
  90. ports:
  91. - "5103:80"
  92. depends_on:
  93. - basket.data
  94. - identity.service
  95. basket.data:
  96. image: redis