-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (78 loc) · 1.57 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
75
76
77
78
79
80
81
services:
# SERVER
api:
container_name: webdp-api
volumes:
- ./Webdp/deployment/dp-engines-config.json:/dpconfig/config.json
networks:
- dpnet
- postnet
build:
context: ./Webdp
dockerfile: deployment/Dockerfile
ports:
- 8080:8080
expose:
- "8081"
environment:
- PORT=8080
- INTERNAL_PORT=8081
- CONFIG_PATH=/dpconfig/config.json
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=${D_USER}
- DB_PASSWORD=${D_PASS}
- DB_NAME=${DB_NAME}
- AUTH_SIGN_KEY=${AUTH_SIGN_KEY}
- ROOT_PASSWORD=${ROOT_PASSWORD}
depends_on:
- postgres
# DATABASE
postgres:
networks:
- postnet
image: postgres:16.2-alpine3.19
environment:
- POSTGRES_USER=${D_USER}
- POSTGRES_PASSWORD=${D_PASS}
- POSTGRES_DB=${DB_NAME}
restart: always
expose:
- "5432"
volumes:
- ./Webdp/deployment/init.sql:/docker-entrypoint-initdb.d/init.sql
# CONNECTORS
tumult:
networks:
- dpnet
build:
context: ./Engines/tumult
dockerfile: Dockerfile
expose:
- "8000"
opendp:
container_name: opendp
networks:
- dpnet
build:
context: ./Engines/opendp
dockerfile: Dockerfile
expose:
- "8000"
googledp:
container_name: googledp
networks:
- dpnet
build:
context: ./Engines/googledp
dockerfile: Dockerfile
expose:
- "8000"
# NETWORKS
networks:
dpnet:
name: dpnet
driver: bridge
postnet:
name: postnet
driver: bridge