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.

271 lines
6.2 KiB

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