9842cc6164
add .nvmrc docker nodejs build in a folder on the ephemeral disk so we don't interfere with lib and node_modules folders
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
version: '3.4'
|
|
|
|
services:
|
|
eventstore:
|
|
image: eventstore/eventstore:20.10.5-buster-slim
|
|
environment:
|
|
- EVENTSTORE_CLUSTER_SIZE=1
|
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
|
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
|
- EVENTSTORE_EXT_TCP_PORT=1113
|
|
- EVENTSTORE_HTTP_PORT=2113
|
|
- EVENTSTORE_INT_IP=192.168.33.10
|
|
- EVENTSTORE_EXT_IP=192.168.33.10
|
|
- 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
|
|
ports:
|
|
- "1113:1113"
|
|
- "2113:2113"
|
|
tmpfs:
|
|
- /var/log/eventstore
|
|
volumes:
|
|
- eventstore-data:/var/lib/eventstore
|
|
- ./certs:/etc/eventstore/certs:ro
|
|
networks:
|
|
app_net:
|
|
aliases:
|
|
- node1.tests.node-eventstore-client.local
|
|
ipv4_address: 192.168.33.10
|
|
|
|
nodejs:
|
|
image: node:14
|
|
working_dir: /var/build
|
|
volumes:
|
|
- ./:/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
|
|
command: bash -c "tail -f /dev/null"
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 192.168.33.5
|
|
|
|
volumes:
|
|
eventstore-data:
|
|
|
|
networks:
|
|
app_net:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: "192.168.33.0/24"
|