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.
 
 

147 lines
4.1 KiB

  1. version: '3.4'
  2. services:
  3. eventstore.db:
  4. image: eventstore/eventstore:release-5.0.8
  5. environment:
  6. - EVENTSTORE_WORKER_THREADS=5
  7. - EVENTSTORE_CLUSTER_SIZE=3
  8. - EVENTSTORE_RUN_PROJECTIONS=All
  9. - EVENTSTORE_DB=/var/lib/eventstore-data
  10. - EVENTSTORE_INDEX=/var/lib/eventstore-index
  11. - EVENTSTORE_LOG=/var/log/eventstore
  12. - EVENTSTORE_CLUSTER_GOSSIP_PORT=2112
  13. - EVENTSTORE_INT_TCP_PORT=1112
  14. - EVENTSTORE_EXT_TCP_PORT=1113
  15. - EVENTSTORE_INT_HTTP_PORT=2112
  16. - EVENTSTORE_EXT_HTTP_PORT=2113
  17. - EVENTSTORE_DISCOVER_VIA_DNS=true
  18. - EVENTSTORE_CLUSTER_DNS=eventstore.local
  19. - EVENTSTORE_INT_IP=192.168.33.10
  20. - EVENTSTORE_EXT_IP=192.168.33.10
  21. ports:
  22. - "1112:1112"
  23. - "1113:1113"
  24. - "2112:2112"
  25. - "2113:2113"
  26. networks:
  27. app_net:
  28. aliases:
  29. - eventstore.local
  30. ipv4_address: 192.168.33.10
  31. volumes:
  32. - type: volume
  33. source: eventstore-volume-data
  34. target: /var/lib/eventstore-data
  35. - type: volume
  36. source: eventstore-volume-index
  37. target: /var/lib/eventstore-index
  38. - type: volume
  39. source: eventstore-volume-logs
  40. target: /var/log/eventstore
  41. eventstore.db2:
  42. image: eventstore/eventstore:release-5.0.8
  43. environment:
  44. - EVENTSTORE_WORKER_THREADS=5
  45. - EVENTSTORE_CLUSTER_SIZE=3
  46. - EVENTSTORE_RUN_PROJECTIONS=All
  47. - EVENTSTORE_DB=/var/lib/eventstore-data
  48. - EVENTSTORE_INDEX=/var/lib/eventstore-index
  49. - EVENTSTORE_LOG=/var/log/eventstore
  50. - EVENTSTORE_CLUSTER_GOSSIP_PORT=2112
  51. - EVENTSTORE_INT_TCP_PORT=1112
  52. - EVENTSTORE_EXT_TCP_PORT=1113
  53. - EVENTSTORE_INT_HTTP_PORT=2112
  54. - EVENTSTORE_EXT_HTTP_PORT=2113
  55. - EVENTSTORE_DISCOVER_VIA_DNS=true
  56. - EVENTSTORE_CLUSTER_DNS=eventstore.local
  57. - EVENTSTORE_INT_IP=192.168.33.11
  58. - EVENTSTORE_EXT_IP=192.168.33.11
  59. expose:
  60. - "1113"
  61. - "1112"
  62. - "2112"
  63. - "2113"
  64. networks:
  65. app_net:
  66. aliases:
  67. - eventstore.local
  68. ipv4_address: 192.168.33.11
  69. volumes:
  70. - type: volume
  71. source: eventstore-volume-data2
  72. target: /var/lib/eventstore-data
  73. - type: volume
  74. source: eventstore-volume-index2
  75. target: /var/lib/eventstore-index
  76. - type: volume
  77. source: eventstore-volume-logs2
  78. target: /var/log/eventstore
  79. eventstore.db3:
  80. image: eventstore/eventstore:release-5.0.8
  81. environment:
  82. - EVENTSTORE_WORKER_THREADS=5
  83. - EVENTSTORE_CLUSTER_SIZE=3
  84. - EVENTSTORE_RUN_PROJECTIONS=All
  85. - EVENTSTORE_DB=/var/lib/eventstore-data
  86. - EVENTSTORE_INDEX=/var/lib/eventstore-index
  87. - EVENTSTORE_LOG=/var/log/eventstore
  88. - EVENTSTORE_CLUSTER_GOSSIP_PORT=2112
  89. - EVENTSTORE_INT_TCP_PORT=1112
  90. - EVENTSTORE_EXT_TCP_PORT=1113
  91. - EVENTSTORE_INT_HTTP_PORT=2112
  92. - EVENTSTORE_EXT_HTTP_PORT=2113
  93. - EVENTSTORE_DISCOVER_VIA_DNS=true
  94. - EVENTSTORE_CLUSTER_DNS=eventstore.local
  95. - EVENTSTORE_INT_IP=192.168.33.12
  96. - EVENTSTORE_EXT_IP=192.168.33.12
  97. expose:
  98. - "1113"
  99. - "1112"
  100. - "2112"
  101. - "2113"
  102. networks:
  103. app_net:
  104. aliases:
  105. - eventstore.local
  106. ipv4_address: 192.168.33.12
  107. volumes:
  108. - type: volume
  109. source: eventstore-volume-data3
  110. target: /var/lib/eventstore-data
  111. - type: volume
  112. source: eventstore-volume-index3
  113. target: /var/lib/eventstore-index
  114. - type: volume
  115. source: eventstore-volume-logs3
  116. target: /var/log/eventstore
  117. nodejs:
  118. image: node:14
  119. working_dir: /var/code
  120. volumes:
  121. - .:/var/code
  122. - /var/code/node_modules
  123. command: bash -c "tail -f /dev/null"
  124. networks:
  125. - app_net
  126. volumes:
  127. eventstore-volume-data:
  128. eventstore-volume-index:
  129. eventstore-volume-logs:
  130. eventstore-volume-data2:
  131. eventstore-volume-index2:
  132. eventstore-volume-logs2:
  133. eventstore-volume-data3:
  134. eventstore-volume-index3:
  135. eventstore-volume-logs3:
  136. networks:
  137. app_net:
  138. ipam:
  139. driver: default
  140. config:
  141. - subnet: "192.168.33.0/24"