Browse Source
* docker-compose files to easily setup cluster or single node eventstore * programmatic tests for single/gossip/clustermaster
13 changed files with 7684 additions and 2593 deletions
@ -0,0 +1,147 @@
|
||||
version: '3.4' |
||||
|
||||
services: |
||||
eventstore.db: |
||||
image: eventstore/eventstore:release-5.0.8 |
||||
environment: |
||||
- EVENTSTORE_WORKER_THREADS=5 |
||||
- EVENTSTORE_CLUSTER_SIZE=3 |
||||
- EVENTSTORE_RUN_PROJECTIONS=All |
||||
- EVENTSTORE_DB=/var/lib/eventstore-data |
||||
- EVENTSTORE_INDEX=/var/lib/eventstore-index |
||||
- EVENTSTORE_LOG=/var/log/eventstore |
||||
- EVENTSTORE_CLUSTER_GOSSIP_PORT=2112 |
||||
- EVENTSTORE_INT_TCP_PORT=1112 |
||||
- EVENTSTORE_EXT_TCP_PORT=1113 |
||||
- EVENTSTORE_INT_HTTP_PORT=2112 |
||||
- EVENTSTORE_EXT_HTTP_PORT=2113 |
||||
- EVENTSTORE_DISCOVER_VIA_DNS=true |
||||
- EVENTSTORE_CLUSTER_DNS=eventstore.local |
||||
- EVENTSTORE_INT_IP=192.168.33.10 |
||||
- EVENTSTORE_EXT_IP=192.168.33.10 |
||||
ports: |
||||
- "1112:1112" |
||||
- "1113:1113" |
||||
- "2112:2112" |
||||
- "2113:2113" |
||||
networks: |
||||
app_net: |
||||
aliases: |
||||
- eventstore.local |
||||
ipv4_address: 192.168.33.10 |
||||
volumes: |
||||
- type: volume |
||||
source: eventstore-volume-data |
||||
target: /var/lib/eventstore-data |
||||
- type: volume |
||||
source: eventstore-volume-index |
||||
target: /var/lib/eventstore-index |
||||
- type: volume |
||||
source: eventstore-volume-logs |
||||
target: /var/log/eventstore |
||||
|
||||
eventstore.db2: |
||||
image: eventstore/eventstore:release-5.0.8 |
||||
environment: |
||||
- EVENTSTORE_WORKER_THREADS=5 |
||||
- EVENTSTORE_CLUSTER_SIZE=3 |
||||
- EVENTSTORE_RUN_PROJECTIONS=All |
||||
- EVENTSTORE_DB=/var/lib/eventstore-data |
||||
- EVENTSTORE_INDEX=/var/lib/eventstore-index |
||||
- EVENTSTORE_LOG=/var/log/eventstore |
||||
- EVENTSTORE_CLUSTER_GOSSIP_PORT=2112 |
||||
- EVENTSTORE_INT_TCP_PORT=1112 |
||||
- EVENTSTORE_EXT_TCP_PORT=1113 |
||||
- EVENTSTORE_INT_HTTP_PORT=2112 |
||||
- EVENTSTORE_EXT_HTTP_PORT=2113 |
||||
- EVENTSTORE_DISCOVER_VIA_DNS=true |
||||
- EVENTSTORE_CLUSTER_DNS=eventstore.local |
||||
- EVENTSTORE_INT_IP=192.168.33.11 |
||||
- EVENTSTORE_EXT_IP=192.168.33.11 |
||||
expose: |
||||
- "1113" |
||||
- "1112" |
||||
- "2112" |
||||
- "2113" |
||||
networks: |
||||
app_net: |
||||
aliases: |
||||
- eventstore.local |
||||
ipv4_address: 192.168.33.11 |
||||
volumes: |
||||
- type: volume |
||||
source: eventstore-volume-data2 |
||||
target: /var/lib/eventstore-data |
||||
- type: volume |
||||
source: eventstore-volume-index2 |
||||
target: /var/lib/eventstore-index |
||||
- type: volume |
||||
source: eventstore-volume-logs2 |
||||
target: /var/log/eventstore |
||||
|
||||
eventstore.db3: |
||||
image: eventstore/eventstore:release-5.0.8 |
||||
environment: |
||||
- EVENTSTORE_WORKER_THREADS=5 |
||||
- EVENTSTORE_CLUSTER_SIZE=3 |
||||
- EVENTSTORE_RUN_PROJECTIONS=All |
||||
- EVENTSTORE_DB=/var/lib/eventstore-data |
||||
- EVENTSTORE_INDEX=/var/lib/eventstore-index |
||||
- EVENTSTORE_LOG=/var/log/eventstore |
||||
- EVENTSTORE_CLUSTER_GOSSIP_PORT=2112 |
||||
- EVENTSTORE_INT_TCP_PORT=1112 |
||||
- EVENTSTORE_EXT_TCP_PORT=1113 |
||||
- EVENTSTORE_INT_HTTP_PORT=2112 |
||||
- EVENTSTORE_EXT_HTTP_PORT=2113 |
||||
- EVENTSTORE_DISCOVER_VIA_DNS=true |
||||
- EVENTSTORE_CLUSTER_DNS=eventstore.local |
||||
- EVENTSTORE_INT_IP=192.168.33.12 |
||||
- EVENTSTORE_EXT_IP=192.168.33.12 |
||||
expose: |
||||
- "1113" |
||||
- "1112" |
||||
- "2112" |
||||
- "2113" |
||||
networks: |
||||
app_net: |
||||
aliases: |
||||
- eventstore.local |
||||
ipv4_address: 192.168.33.12 |
||||
volumes: |
||||
- type: volume |
||||
source: eventstore-volume-data3 |
||||
target: /var/lib/eventstore-data |
||||
- type: volume |
||||
source: eventstore-volume-index3 |
||||
target: /var/lib/eventstore-index |
||||
- type: volume |
||||
source: eventstore-volume-logs3 |
||||
target: /var/log/eventstore |
||||
|
||||
nodejs: |
||||
image: node:14 |
||||
working_dir: /var/code |
||||
volumes: |
||||
- .:/var/code |
||||
- /var/code/node_modules |
||||
command: bash -c "tail -f /dev/null" |
||||
networks: |
||||
- app_net |
||||
|
||||
volumes: |
||||
eventstore-volume-data: |
||||
eventstore-volume-index: |
||||
eventstore-volume-logs: |
||||
eventstore-volume-data2: |
||||
eventstore-volume-index2: |
||||
eventstore-volume-logs2: |
||||
eventstore-volume-data3: |
||||
eventstore-volume-index3: |
||||
eventstore-volume-logs3: |
||||
|
||||
networks: |
||||
app_net: |
||||
ipam: |
||||
driver: default |
||||
config: |
||||
- subnet: "192.168.33.0/24" |
@ -0,0 +1,54 @@
|
||||
version: '3.4' |
||||
|
||||
services: |
||||
eventstore.db: |
||||
image: eventstore/eventstore:release-5.0.8 |
||||
environment: |
||||
- EVENTSTORE_CLUSTER_SIZE=1 |
||||
- EVENTSTORE_RUN_PROJECTIONS=All |
||||
- EVENTSTORE_START_STANDARD_PROJECTIONS=True |
||||
- EVENTSTORE_DB=/var/lib/eventstore-data |
||||
- EVENTSTORE_INDEX=/var/lib/eventstore-index |
||||
- EVENTSTORE_LOG=/var/log/eventstore |
||||
- EVENTSTORE_EXT_TCP_PORT=1113 |
||||
- EVENTSTORE_EXT_HTTP_PORT=2113 |
||||
- EVENTSTORE_INT_IP=192.168.33.10 |
||||
- EVENTSTORE_EXT_IP=192.168.33.10 |
||||
ports: |
||||
- "1113:1113" |
||||
- "2113:2113" |
||||
volumes: |
||||
- type: volume |
||||
source: eventstore-volume-data |
||||
target: /var/lib/eventstore-data |
||||
- type: volume |
||||
source: eventstore-volume-index |
||||
target: /var/lib/eventstore-index |
||||
- type: volume |
||||
source: eventstore-volume-logs |
||||
target: /var/log/eventstore |
||||
networks: |
||||
app_net: |
||||
ipv4_address: 192.168.33.10 |
||||
|
||||
nodejs: |
||||
image: node:14 |
||||
working_dir: /var/code |
||||
volumes: |
||||
- .:/var/code |
||||
- /var/code/node_modules |
||||
command: bash -c "tail -f /dev/null" |
||||
networks: |
||||
- app_net |
||||
|
||||
volumes: |
||||
eventstore-volume-data: |
||||
eventstore-volume-index: |
||||
eventstore-volume-logs: |
||||
|
||||
networks: |
||||
app_net: |
||||
ipam: |
||||
driver: default |
||||
config: |
||||
- subnet: "192.168.33.0/24" |
Loading…
Reference in new issue