forked from OpenSlides/openslides-datastore-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (57 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.4"
services:
reader:
image: openslides-datastore-reader
ports:
- "${OPENSLIDES_DATASTORE_READER_PORT}:${OPENSLIDES_DATASTORE_READER_PORT}"
environment:
- PORT=${OPENSLIDES_DATASTORE_READER_PORT}
- NUM_WORKERS=8
depends_on:
- postgres
networks:
- postgres
secrets:
- postgres_password
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${OPENSLIDES_DATASTORE_READER_PORT}"]
interval: 5s
timeout: 5s
retries: 5
writer:
image: openslides-datastore-writer
ports:
- "${OPENSLIDES_DATASTORE_WRITER_PORT}:${OPENSLIDES_DATASTORE_WRITER_PORT}"
environment:
- PORT=${OPENSLIDES_DATASTORE_WRITER_PORT}
- DATASTORE_TRIM_COLLECTIONFIELD_TABLES=1
depends_on:
- postgres
- redis
networks:
- postgres
- redis
secrets:
- postgres_password
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${OPENSLIDES_DATASTORE_WRITER_PORT}"]
interval: 5s
timeout: 5s
retries: 5
postgres:
image: postgres:15
env_file: database.env
networks:
- postgres
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- redis
networks:
postgres:
redis:
secrets:
postgres_password:
file: ./secrets/postgres_password