2023-01-30 20:03:47 +00:00
|
|
|
version: '3.7'
|
2020-09-16 15:23:46 +00:00
|
|
|
|
|
|
|
services:
|
2023-01-30 20:03:47 +00:00
|
|
|
eventstore1:
|
|
|
|
image: eventstore/eventstore:21.10.9-buster-slim
|
2020-09-16 15:23:46 +00:00
|
|
|
environment:
|
|
|
|
- EVENTSTORE_CLUSTER_SIZE=3
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_CLUSTER_DNS=cluster.tests.node-eventstore-client.local
|
|
|
|
- EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=node1.tests.node-eventstore-client.local
|
|
|
|
- EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=2113
|
|
|
|
- EVENTSTORE_ADVERTISE_TCP_PORT_TO_CLIENT_AS=1113
|
2023-01-30 20:03:47 +00:00
|
|
|
# - EVENTSTORE_DISCOVER_VIA_DNS=False
|
2022-10-23 00:07:01 +00:00
|
|
|
# - EVENTSTORE_GOSSIP_SEED=192.168.33.10:2113,192.168.33.11:2113,192.168.33.12:2113
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
|
|
|
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_EXT_TCP_PORT=1113
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_HTTP_PORT=2113
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_INT_IP=192.168.33.10
|
|
|
|
- EVENTSTORE_EXT_IP=192.168.33.10
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_CERTIFICATE_FILE=/etc/eventstore/certs/node1/node1.crt
|
|
|
|
- EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/etc/eventstore/certs/node1/node1.key
|
|
|
|
- EVENTSTORE_TRUSTED_ROOT_CERTIFICATES_PATH=/etc/eventstore/certs/ca
|
2023-01-30 20:03:47 +00:00
|
|
|
expose:
|
|
|
|
- "1112"
|
|
|
|
- "1113"
|
|
|
|
- "2113"
|
2020-09-16 15:23:46 +00:00
|
|
|
ports:
|
|
|
|
- "1112:1112"
|
|
|
|
- "1113:1113"
|
|
|
|
- "2113:2113"
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
aliases:
|
2022-10-23 00:07:01 +00:00
|
|
|
- cluster.tests.node-eventstore-client.local
|
|
|
|
- node1.tests.node-eventstore-client.local
|
2020-09-16 15:23:46 +00:00
|
|
|
ipv4_address: 192.168.33.10
|
|
|
|
volumes:
|
2022-10-23 00:07:01 +00:00
|
|
|
- eventstore1-data:/var/lib/eventstore
|
|
|
|
- ./certs:/etc/eventstore/certs:ro
|
2020-09-16 15:23:46 +00:00
|
|
|
|
2023-01-30 20:03:47 +00:00
|
|
|
eventstore2:
|
|
|
|
image: eventstore/eventstore:21.10.9-buster-slim
|
2020-09-16 15:23:46 +00:00
|
|
|
environment:
|
|
|
|
- EVENTSTORE_CLUSTER_SIZE=3
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_CLUSTER_DNS=cluster.tests.node-eventstore-client.local
|
|
|
|
- EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=node2.tests.node-eventstore-client.local
|
|
|
|
- EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=2113
|
|
|
|
- EVENTSTORE_ADVERTISE_TCP_PORT_TO_CLIENT_AS=1113
|
2023-01-30 20:03:47 +00:00
|
|
|
# - EVENTSTORE_DISCOVER_VIA_DNS=False
|
2022-10-23 00:07:01 +00:00
|
|
|
# - EVENTSTORE_GOSSIP_SEED=192.168.33.10:2113,192.168.33.11:2113,192.168.33.12:2113
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
|
|
|
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_EXT_TCP_PORT=1113
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_HTTP_PORT=2113
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_INT_IP=192.168.33.11
|
|
|
|
- EVENTSTORE_EXT_IP=192.168.33.11
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_CERTIFICATE_FILE=/etc/eventstore/certs/node2/node2.crt
|
|
|
|
- EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/etc/eventstore/certs/node2/node2.key
|
|
|
|
- EVENTSTORE_TRUSTED_ROOT_CERTIFICATES_PATH=/etc/eventstore/certs/ca
|
2020-09-16 15:23:46 +00:00
|
|
|
expose:
|
|
|
|
- "1113"
|
|
|
|
- "1112"
|
|
|
|
- "2113"
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
aliases:
|
2022-10-23 00:07:01 +00:00
|
|
|
- cluster.tests.node-eventstore-client.local
|
|
|
|
- node2.tests.node-eventstore-client.local
|
2020-09-16 15:23:46 +00:00
|
|
|
ipv4_address: 192.168.33.11
|
|
|
|
volumes:
|
2022-10-23 00:07:01 +00:00
|
|
|
- eventstore2-data:/var/lib/eventstore
|
|
|
|
- ./certs:/etc/eventstore/certs:ro
|
2020-09-16 15:23:46 +00:00
|
|
|
|
2023-01-30 20:03:47 +00:00
|
|
|
eventstore3:
|
|
|
|
image: eventstore/eventstore:21.10.9-buster-slim
|
2020-09-16 15:23:46 +00:00
|
|
|
environment:
|
|
|
|
- EVENTSTORE_CLUSTER_SIZE=3
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_CLUSTER_DNS=cluster.tests.node-eventstore-client.local
|
|
|
|
- EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=node3.tests.node-eventstore-client.local
|
|
|
|
- EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=2113
|
|
|
|
- EVENTSTORE_ADVERTISE_TCP_PORT_TO_CLIENT_AS=1113
|
2023-01-30 20:03:47 +00:00
|
|
|
# - EVENTSTORE_DISCOVER_VIA_DNS=False
|
2022-10-23 00:07:01 +00:00
|
|
|
# - EVENTSTORE_GOSSIP_SEED=192.168.33.10:2113,192.168.33.11:2113,192.168.33.12:2113
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
|
|
|
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_EXT_TCP_PORT=1113
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_HTTP_PORT=2113
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_INT_IP=192.168.33.12
|
|
|
|
- EVENTSTORE_EXT_IP=192.168.33.12
|
2022-10-23 00:07:01 +00:00
|
|
|
- EVENTSTORE_CERTIFICATE_FILE=/etc/eventstore/certs/node3/node3.crt
|
|
|
|
- EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/etc/eventstore/certs/node3/node3.key
|
|
|
|
- EVENTSTORE_TRUSTED_ROOT_CERTIFICATES_PATH=/etc/eventstore/certs/ca
|
2020-09-16 15:23:46 +00:00
|
|
|
expose:
|
|
|
|
- "1113"
|
|
|
|
- "1112"
|
|
|
|
- "2113"
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
aliases:
|
2022-10-23 00:07:01 +00:00
|
|
|
- cluster.tests.node-eventstore-client.local
|
|
|
|
- node3.tests.node-eventstore-client.local
|
2020-09-16 15:23:46 +00:00
|
|
|
ipv4_address: 192.168.33.12
|
|
|
|
volumes:
|
2022-10-23 00:07:01 +00:00
|
|
|
- eventstore3-data:/var/lib/eventstore-data
|
|
|
|
- ./certs:/etc/eventstore/certs:ro
|
2020-09-16 15:23:46 +00:00
|
|
|
|
|
|
|
nodejs:
|
2023-01-30 20:03:47 +00:00
|
|
|
image: node:14
|
|
|
|
working_dir: /var/build
|
2020-09-16 15:23:46 +00:00
|
|
|
volumes:
|
2023-01-30 20:03:47 +00:00
|
|
|
- ./:/var/code:ro
|
|
|
|
- ./build-and-test.sh:/var/build/build-and-test.sh:ro
|
|
|
|
- ./certs:/var/certs:ro
|
|
|
|
environment:
|
|
|
|
- NODE_EXTRA_CA_CERTS=/var/certs/ca/ca.crt
|
2020-09-16 15:23:46 +00:00
|
|
|
command: bash -c "tail -f /dev/null"
|
|
|
|
networks:
|
2023-01-30 20:03:47 +00:00
|
|
|
app_net:
|
|
|
|
ipv4_address: 192.168.33.5
|
2020-09-16 15:23:46 +00:00
|
|
|
|
|
|
|
volumes:
|
2022-10-23 00:07:01 +00:00
|
|
|
eventstore1-data:
|
|
|
|
eventstore2-data:
|
|
|
|
eventstore3-data:
|
2020-09-16 15:23:46 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
2022-10-23 00:07:01 +00:00
|
|
|
- subnet: "192.168.33.0/24"
|