147 lines
4.1 KiB
YAML
147 lines
4.1 KiB
YAML
|
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"
|