2020-09-16 15:23:46 +00:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
eventstore.db:
|
2023-01-30 16:48:29 +00:00
|
|
|
image: eventstore/eventstore:20.10.5-buster-slim
|
2020-09-16 15:23:46 +00:00
|
|
|
environment:
|
|
|
|
- EVENTSTORE_CLUSTER_SIZE=1
|
|
|
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
|
|
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
2023-01-30 16:48:29 +00:00
|
|
|
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
2020-09-16 15:23:46 +00:00
|
|
|
- EVENTSTORE_EXT_TCP_PORT=1113
|
2023-01-30 16:48:29 +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
|
2023-01-30 16:48:29 +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
|
2020-09-16 15:23:46 +00:00
|
|
|
ports:
|
|
|
|
- "1113:1113"
|
|
|
|
- "2113:2113"
|
2023-01-30 16:48:29 +00:00
|
|
|
tmpfs:
|
|
|
|
- /var/log/eventstore
|
2020-09-16 15:23:46 +00:00
|
|
|
volumes:
|
2023-01-30 16:48:29 +00:00
|
|
|
- eventstore-data:/var/lib/eventstore
|
|
|
|
- ./certs:/etc/eventstore/certs:ro
|
2020-09-16 15:23:46 +00:00
|
|
|
networks:
|
|
|
|
app_net:
|
2023-01-30 16:48:29 +00:00
|
|
|
aliases:
|
|
|
|
- node1.tests.node-eventstore-client.local
|
2020-09-16 15:23:46 +00:00
|
|
|
ipv4_address: 192.168.33.10
|
|
|
|
|
|
|
|
nodejs:
|
|
|
|
image: node:14
|
|
|
|
working_dir: /var/code
|
|
|
|
volumes:
|
|
|
|
- .:/var/code
|
|
|
|
- /var/code/node_modules
|
2023-01-30 16:48:29 +00:00
|
|
|
- ./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:
|
|
|
|
- app_net
|
|
|
|
|
|
|
|
volumes:
|
2023-01-30 16:48:29 +00:00
|
|
|
eventstore-data:
|
2020-09-16 15:23:46 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
2023-01-30 16:48:29 +00:00
|
|
|
- subnet: "192.168.33.0/24"
|