-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
74 lines (72 loc) · 1.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.9'
services:
mongo:
image: mongo:4
volumes:
- ./data/mongo:/data/db
ports:
- 27017:27017
networks:
- democracy
bundestag-io:
build:
dockerfile: ./infra/Dockerfile
target: dev
args:
- NODE_VERSION=18.18.2
- SERVICE=bundestag.io
- SERVICE_PATH=bundestag.io/api
ports:
- 4000:4000
depends_on:
- mongo
- ai-votes
environment:
- DB_URL=mongodb://mongo:27017/bundestagio
- BIO_EDIT_TOKEN=CHANGE_ME
- PORT=4000
volumes:
- ./bundestag.io/api/src:/app/bundestag.io/api/src
networks:
- democracy
bio-admin:
build:
dockerfile: ./infra/Dockerfile
target: dev
args:
- NODE_VERSION=18.18.2
- SERVICE=bundestag.io-admin
- SERVICE_PATH=bundestag.io/admin
- BUNDESTAGIO_SERVER_URL=http://bundestag-io:4000
ports:
- 4001:4001
depends_on:
- bundestag-io
environment:
- PORT=4001
- BUNDESTAGIO_SERVER_URL=http://bundestag-io:4000
- BIO_EDIT_TOKEN=CHANGE_ME
- NEXTAUTH_URL=http://localhost:4001
- CREDENTIALS=username:password
volumes:
- ./bundestag.io/admin/src:/app/bundestag.io/admin/src
profiles:
- admin
networks:
- democracy
ai-votes:
image: democracy/votes-ai:0.0.1-alpha.0
profiles:
- admin
- ai
env_file:
- .env
environment:
- PORT=4003
ports:
- 4003:4003
networks:
- democracy
networks:
democracy:
external: false