forked from OpenSlides/openslides-datastore-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdc.external.yml
58 lines (58 loc) · 1.58 KB
/
dc.external.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'
services:
reader:
build:
context: "https://github.com/OpenSlides/openslides-datastore-service.git"
dockerfile: Dockerfile
args:
MODULE: "reader"
PORT: "9010"
image: openslides-datastore-reader
ports:
- "9010:9010"
environment:
- DATASTORE_ENABLE_DEV_ENVIRONMENT=1
depends_on:
- postgresql
networks:
- datastore
- postgresql
writer:
build:
context: "https://github.com/OpenSlides/openslides-datastore-service.git"
dockerfile: Dockerfile
args:
MODULE: "writer"
PORT: "9011"
image: openslides-datastore-writer
ports:
- "9011:9011"
environment:
- DATASTORE_ENABLE_DEV_ENVIRONMENT=1
- COMMAND=create_initial_data
- DATASTORE_INITIAL_DATA_FILE=https://raw.githubusercontent.com/OpenSlides/OpenSlides/master/docs/example-data.json
depends_on:
- postgresql
- redis
networks:
- datastore
- postgresql
- redis
postgresql:
image: postgres:11
environment:
- POSTGRES_USER=openslides
- POSTGRES_PASSWORD=openslides
- POSTGRES_DB=openslides
networks:
- postgresql
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- redis
networks:
datastore:
postgresql:
redis: