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.

233 lines
5.3 KiB

6 years ago
  1. version: '3.4'
  2. services:
  3. sql.data:
  4. image: microsoft/mssql-server-linux:2017-latest
  5. nosql.data:
  6. image: mongo
  7. basket.data:
  8. image: redis:alpine
  9. rabbitmq:
  10. image: rabbitmq:3-management-alpine
  11. identity.api:
  12. image: ${REGISTRY:-eshop}/identity.api:${TAG:-latest}
  13. build:
  14. context: .
  15. dockerfile: src/Services/Identity/Identity.API/Dockerfile
  16. depends_on:
  17. - sql.data
  18. basket.api:
  19. image: ${REGISTRY:-eshop}/basket.api:${TAG:-latest}
  20. build:
  21. context: .
  22. dockerfile: src/Services/Basket/Basket.API/Dockerfile
  23. depends_on:
  24. - basket.data
  25. - identity.api
  26. - rabbitmq
  27. catalog.api:
  28. image: ${REGISTRY:-eshop}/catalog.api:${TAG:-latest}
  29. build:
  30. context: .
  31. dockerfile: src/Services/Catalog/Catalog.API/Dockerfile
  32. depends_on:
  33. - sql.data
  34. - rabbitmq
  35. ordering.api:
  36. image: ${REGISTRY:-eshop}/ordering.api:${TAG:-latest}
  37. build:
  38. context: .
  39. dockerfile: src/Services/Ordering/Ordering.API/Dockerfile
  40. depends_on:
  41. - sql.data
  42. - rabbitmq
  43. ordering.backgroundtasks:
  44. image: ${REGISTRY:-eshop}/ordering.backgroundtasks:${TAG:-latest}
  45. build:
  46. context: .
  47. dockerfile: src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile
  48. depends_on:
  49. - sql.data
  50. - rabbitmq
  51. marketing.api:
  52. image: ${REGISTRY:-eshop}/marketing.api:${TAG:-latest}
  53. build:
  54. context: .
  55. dockerfile: src/Services/Marketing/Marketing.API/Dockerfile
  56. depends_on:
  57. - sql.data
  58. - nosql.data
  59. - identity.api
  60. - rabbitmq
  61. payment.api:
  62. image: ${REGISTRY:-eshop}/payment.api:${TAG:-latest}
  63. build:
  64. context: .
  65. dockerfile: src/Services/Payment/Payment.API/Dockerfile
  66. depends_on:
  67. - rabbitmq
  68. locations.api:
  69. image: ${REGISTRY:-eshop}/locations.api:${TAG:-latest}
  70. build:
  71. context: .
  72. dockerfile: src/Services/Location/Locations.API/Dockerfile
  73. depends_on:
  74. - nosql.data
  75. - rabbitmq
  76. webhooks.api:
  77. image: ${REGISTRY:-eshop}/webhooks.api:${TAG:-latest}
  78. build:
  79. context: .
  80. dockerfile: src/Services/Webhooks/Webhooks.API/Dockerfile
  81. depends_on:
  82. - sql.data
  83. mobileshoppingapigw:
  84. image: ${REGISTRY:-eshop}/ocelotapigw:${TAG:-latest}
  85. build:
  86. context: .
  87. dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
  88. depends_on:
  89. - nosql.data
  90. - sql.data
  91. - identity.api
  92. - rabbitmq
  93. - ordering.api
  94. - marketing.api
  95. - catalog.api
  96. - basket.api
  97. mobilemarketingapigw:
  98. image: ${REGISTRY:-eshop}/ocelotapigw:${TAG:-latest}
  99. build:
  100. context: .
  101. dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
  102. depends_on:
  103. - nosql.data
  104. - sql.data
  105. - identity.api
  106. - rabbitmq
  107. - ordering.api
  108. - marketing.api
  109. - catalog.api
  110. - basket.api
  111. webshoppingapigw:
  112. image: ${REGISTRY:-eshop}/ocelotapigw:${TAG:-latest}
  113. build:
  114. context: .
  115. dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
  116. depends_on:
  117. - nosql.data
  118. - sql.data
  119. - identity.api
  120. - rabbitmq
  121. - ordering.api
  122. - marketing.api
  123. - catalog.api
  124. - basket.api
  125. webmarketingapigw:
  126. image: ${REGISTRY:-eshop}/ocelotapigw:${TAG:-latest}
  127. build:
  128. context: .
  129. dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
  130. depends_on:
  131. - nosql.data
  132. - sql.data
  133. - identity.api
  134. - rabbitmq
  135. - ordering.api
  136. - marketing.api
  137. - catalog.api
  138. - basket.api
  139. mobileshoppingagg:
  140. image: ${REGISTRY:-eshop}/mobileshoppingagg:${TAG:-latest}
  141. build:
  142. context: .
  143. dockerfile: src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile
  144. depends_on:
  145. - nosql.data
  146. - sql.data
  147. - identity.api
  148. - rabbitmq
  149. - ordering.api
  150. - marketing.api
  151. - catalog.api
  152. - basket.api
  153. webshoppingagg:
  154. image: ${REGISTRY:-eshop}/webshoppingagg:${TAG:-latest}
  155. build:
  156. context: .
  157. dockerfile: src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile
  158. depends_on:
  159. - nosql.data
  160. - sql.data
  161. - identity.api
  162. - rabbitmq
  163. - ordering.api
  164. - marketing.api
  165. - catalog.api
  166. - basket.api
  167. ordering.signalrhub:
  168. image: ${REGISTRY:-eshop}/ordering.signalrhub:${TAG:-latest}
  169. build:
  170. context: .
  171. dockerfile: src/Services/Ordering/Ordering.SignalrHub/Dockerfile
  172. depends_on:
  173. - nosql.data
  174. - sql.data
  175. - identity.api
  176. - rabbitmq
  177. - ordering.api
  178. - marketing.api
  179. - catalog.api
  180. - basket.api
  181. webstatus:
  182. image: ${REGISTRY:-eshop}/webstatus:${TAG:-latest}
  183. build:
  184. context: .
  185. dockerfile: src/Web/WebStatus/Dockerfile
  186. webspa:
  187. image: ${REGISTRY:-eshop}/webspa:${TAG:-latest}
  188. build:
  189. context: .
  190. dockerfile: src/Web/WebSPA/Dockerfile
  191. # depends_on:
  192. # - webshoppingagg
  193. # - webshoppingapigw
  194. # - webmarketingapigw
  195. webmvc:
  196. image: ${REGISTRY:-eshop}/webmvc:${TAG:-latest}
  197. build:
  198. context: .
  199. dockerfile: src/Web/WebMVC/Dockerfile
  200. depends_on:
  201. - webshoppingagg
  202. - webshoppingapigw
  203. - webmarketingapigw
  204. webhooks.client:
  205. image: ${REGISTRY:-eshop}/webhooks.client:${TAG:-latest}
  206. build:
  207. context: .
  208. dockerfile: src/Web/WebhookClient/Dockerfile
  209. depends_on:
  210. - webhooks.api