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.

121 lines
2.6 KiB

  1. version: '2.1'
  2. services:
  3. basket.api:
  4. image: eshop/basket.api-win:${TAG:-latest}
  5. build:
  6. context: ./src/Services/Basket/Basket.API
  7. dockerfile: Dockerfile.nanowin
  8. depends_on:
  9. - basket.data
  10. - identity.api
  11. - rabbitmq
  12. catalog.api:
  13. image: eshop/catalog.api-win:${TAG:-latest}
  14. build:
  15. context: ./src/Services/Catalog/Catalog.API
  16. dockerfile: Dockerfile.nanowin
  17. depends_on:
  18. - sql.data
  19. - rabbitmq
  20. identity.api:
  21. image: eshop/identity.api-win:${TAG:-latest}
  22. build:
  23. context: ./src/Services/Identity/Identity.API
  24. dockerfile: Dockerfile.nanowin
  25. depends_on:
  26. - sql.data
  27. ordering.api:
  28. image: eshop/ordering.api-win:${TAG:-latest}
  29. build:
  30. context: ./src/Services/Ordering/Ordering.API
  31. dockerfile: Dockerfile.nanowin
  32. depends_on:
  33. - sql.data
  34. - rabbitmq
  35. webspa:
  36. image: eshop/webspa-win:${TAG:-latest}
  37. build:
  38. context: ./src/Web/WebSPA
  39. dockerfile: Dockerfile.nanowin
  40. depends_on:
  41. - identity.api
  42. - basket.api
  43. webmvc:
  44. image: eshop/webmvc-win:${TAG:-latest}
  45. build:
  46. context: ./src/Web/WebMVC
  47. dockerfile: Dockerfile.nanowin
  48. depends_on:
  49. - catalog.api
  50. - ordering.api
  51. - identity.api
  52. - basket.api
  53. - marketing.api
  54. webstatus:
  55. image: eshop/webstatus:${TAG:-latest}
  56. build:
  57. context: ./src/Web/WebStatus
  58. dockerfile: Dockerfile.nanowin
  59. locations.api:
  60. image: eshop/locations.api:${TAG:-latest}
  61. build:
  62. context: ./src/Services/Location/Locations.API
  63. dockerfile: Dockerfile.nanowin
  64. depends_on:
  65. - nosql.data
  66. - rabbitmq
  67. marketing.api:
  68. image: eshop/marketing.api:${TAG:-latest}
  69. build:
  70. context: ./src/Services/Marketing/Marketing.API
  71. dockerfile: Dockerfile.nanowin
  72. depends_on:
  73. - sql.data
  74. - nosql.data
  75. - identity.api
  76. - rabbitmq
  77. sql.data:
  78. image: microsoft/mssql-server-windows
  79. nosql.data:
  80. image: mongo:windowsservercore
  81. basket.data:
  82. image: redis:nanoserver
  83. # build:
  84. # context: ./_docker/redis
  85. # dockerfile: Dockerfile.nanowin
  86. ports:
  87. - "6379:6379"
  88. rabbitmq:
  89. image: spring2/rabbitmq
  90. # build:
  91. # context: ./_docker/rabbitmq
  92. # dockerfile: Dockerfile.nanowin
  93. ports:
  94. - "5672:5672"
  95. payment.api:
  96. image: eshop/payment.api:${TAG:-latest}
  97. build:
  98. context: ./src/Services/Payment/Payment.API
  99. dockerfile: Dockerfile.nanowin
  100. depends_on:
  101. - rabbitmq
  102. networks:
  103. default:
  104. external:
  105. name: nat