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.

93 lines
1.9 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. ports:
  12. - "5100:80"
  13. depends_on:
  14. - catalog.api
  15. - identity.data
  16. - basket.api
  17. webspa:
  18. image: eshop/webspa
  19. build:
  20. context: .
  21. dockerfile: Dockerfile
  22. environment:
  23. - CatalogUrl=http://catalog.api
  24. - OrderingUrl=http://ordering.api
  25. ports:
  26. - "5104:80"
  27. depends_on:
  28. - catalog.api
  29. - identity.data
  30. - basket.api
  31. catalog.api:
  32. image: eshop/catalog.api
  33. environment:
  34. - ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word
  35. expose:
  36. - "80"
  37. ports:
  38. - "5101:80"
  39. depends_on:
  40. - catalog.data
  41. catalog.data:
  42. image: microsoft/mssql-server-linux
  43. environment:
  44. - SA_PASSWORD=Pass@word
  45. - ACCEPT_EULA=Y
  46. ports:
  47. - "5434:1433"
  48. ordering.api:
  49. image: eshop/ordering.api
  50. environment:
  51. - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  52. ports:
  53. - "5102:80"
  54. # (Go to Production): For secured/final deployment, remove Ports mapping and
  55. # leave just the internal expose section
  56. # expose:
  57. # - "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.data:
  67. image: microsoft/mssql-server-linux
  68. environment:
  69. - SA_PASSWORD=Pass@word
  70. - ACCEPT_EULA=Y
  71. ports:
  72. - "5433:1433"
  73. basket.api:
  74. image: eshop/basket.api
  75. environment:
  76. - ConnectionString=basket.data
  77. build:
  78. context: .
  79. dockerfile: Dockerfile
  80. ports:
  81. - "5103:80"
  82. depends_on:
  83. - basket.data
  84. basket.data:
  85. image: redis