Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (55 loc) · 1.68 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (55 loc) · 1.68 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
redis:
image: "redislabs/rejson:latest"
restart: always
ports:
- '6379:6379'
command: redis-server --save 120 1 --appendonly yes --loglevel warning --loadmodule /usr/lib/redis/modules/rejson.so
volumes:
- redis:/data
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_USER=epoch
- POSTGRES_PASSWORD=epoch
- POSTGRES_DB=epoch
# Published on 54321 rather than 5432 so a system postgres, or
# another project's container, does not collide with it, and bound
# to the loopback address because the credentials are throwaway and
# this database is only ever a test fixture. No restart policy for
# the same reason: it comes up with `docker compose up` and should
# not survive a reboot on its own.
ports:
- '127.0.0.1:54321:5432'
volumes:
- postgres:/var/lib/postgresql/data
eventstore.db:
image: eventstore/eventstore:20.10.2-buster-slim
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
- EVENTSTORE_EXT_TCP_PORT=1113
- EVENTSTORE_HTTP_PORT=2113
- EVENTSTORE_INSECURE=true
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
ports:
- "1113:1113"
- "2113:2113"
volumes:
- type: volume
source: eventstore-volume-data
target: /var/lib/eventstore
- type: volume
source: eventstore-volume-logs
target: /var/log/eventstore
volumes:
redis:
driver: local
postgres:
driver: local
eventstore-volume-data:
driver: local
eventstore-volume-logs:
driver: local