-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
38 lines (36 loc) · 1.32 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.7'
services:
postgres:
container_name: microservice_postgres
image: postgres:${POSTGRES_VERSION}
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DATABASE}
ports:
- ${POSTGRES_PORT}:5432
volumes:
- /data/postgres/
networks:
- microservice-network
eventstore:
container_name: microservice_eventstore
ports:
- ${EVENT_STORE_HTTP_PORT}:2113
- ${EVENT_STORE_TCP_PORT}:1113
image: eventstore/eventstore:${EVENT_STORE_VERSION}
# thanks to this command we can connect to the eventstore
command: --dev --enable-external-tcp --ext-ip=0.0.0.0 --int-ip=0.0.0.0 --disable-external-tcp-tls
environment:
- EVENTSTORE_CLUSTER_SIZE=${EVENT_STORE_CLUSTER_SIZE}
- EVENTSTORE_INT_TCP_PORT=${EVENT_STORE_INT_TCP_PORT}
- EVENTSTORE_EXT_TCP_PORT=${EVENT_STORE_EXT_TCP_PORT}
- EVENTSTORE_INT_HTTP_PORT=${EVENT_STORE_INT_HTTP_PORT}
- EVENTSTORE_EXT_HTTP_PORT=${EVENT_STORE_EXT_HTTP_PORT}
# later we will provide a certificate for TLS connection to event store
- EVENTSTORE_INSECURE=${EVENT_STORE_INSECURE}
- EVENTSTORE_RUN_PROJECTIONS=All
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
networks:
microservice-network:
driver: bridge