-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
187 lines (176 loc) · 5.29 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version: "3.2"
services:
#
## Databases
#
db_0:
container_name: db_0
image: postgres
environment:
- POSTGRES_DB=orchestrator
- POSTGRES_USER=orchestrator
- POSTGRES_PASSWORD=orchestrator
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./data/participant_0/container:/var/lib/postgresql/data
db_1:
container_name: db_1
image: postgres
environment:
- POSTGRES_DB=orchestrator
- POSTGRES_USER=orchestrator
- POSTGRES_PASSWORD=orchestrator
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./data/participant_1/container:/var/lib/postgresql/data
db_2:
container_name: db_2
image: postgres
environment:
- POSTGRES_DB=orchestrator
- POSTGRES_USER=orchestrator
- POSTGRES_PASSWORD=orchestrator
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./data/participant_2/container:/var/lib/postgresql/data
#
## Runtime players
#
runtime_0:
container_name: runtime_0
image: cosmian/ciphercompute:v1.4.3
environment:
- PUBLIC_SERVER_NAME=localhost
- PUBLIC_SERVER_ADDRESS=http://localhost:10000
volumes:
- ./data/participant_0/container:/root/cosmian_data
ports:
- "10000:10000"
- "5000:5000"
entrypoint: /bin/bash
command: -c "source /root/bashrc && /root/cosmian_server/cosmian_server --public_server_name localhost --root_dir /root/cosmian_data --port 10000 --public_mpc_port 5000"
runtime_1:
container_name: runtime_1
image: cosmian/ciphercompute:v1.4.3
environment:
- PUBLIC_SERVER_NAME=localhost
- PUBLIC_SERVER_ADDRESS=http://localhost:10001
volumes:
- ./data/participant_1/container:/root/cosmian_data
ports:
- "10001:10001"
- "5001:5001"
entrypoint: /bin/bash
command: -c "source /root/bashrc && /root/cosmian_server/cosmian_server --public_server_name localhost --root_dir /root/cosmian_data --port 10001 --public_mpc_port 5001"
runtime_2:
container_name: runtime_2
image: cosmian/ciphercompute:v1.4.3
environment:
- PUBLIC_SERVER_NAME=localhost
- PUBLIC_SERVER_ADDRESS=http://localhost:10002
volumes:
- ./data/participant_2/container:/root/cosmian_data
ports:
- "10002:10002"
- "5002:5002"
entrypoint: /bin/bash
command: -c "source /root/bashrc && /root/cosmian_server/cosmian_server --public_server_name localhost --root_dir /root/cosmian_data --port 10002 --public_mpc_port 5002"
#
## Orchestrators
#
orchestrator_0:
container_name: orchestrator_0
image: cosmian/orchestrator:v1.4.3
environment:
- SERVER_NAME=Participant_0
- SERVER_ADDRESS=http://orchestrator_0:9000
- ROOT_DIR=/root/cosmian_data
- PORT=9000
- RUNTIME_PORT=10000
- RUNTIME_ADDRESS=http://runtime_0:10000
- PERSIST_DATA=true
- DATABASE_URL=postgres://orchestrator:orchestrator@db_0/orchestrator
volumes:
- ./data/participant_0/container:/root/cosmian_data
ports:
- "9000:9000"
command: /root/cosmian_server/orchestrator
depends_on:
- runtime_0
- db_0
orchestrator_1:
container_name: orchestrator_1
image: cosmian/orchestrator:v1.4.3
environment:
- SERVER_NAME=Participant_1
- SERVER_ADDRESS=http://orchestrator_1:9001
- ROOT_DIR=/root/cosmian_data
- PORT=9001
- RUNTIME_PORT=10001
- RUNTIME_ADDRESS=http://runtime_1:10001
- PERSIST_DATA=true
- DATABASE_URL=postgres://orchestrator:orchestrator@db_1/orchestrator
volumes:
- ./data/participant_1/container:/root/cosmian_data
ports:
- "9001:9001"
command: /root/cosmian_server/orchestrator
depends_on:
- runtime_1
- db_1
orchestrator_2:
container_name: orchestrator_2
image: cosmian/orchestrator:v1.4.3
environment:
- SERVER_NAME=Participant_2
- SERVER_ADDRESS=http://orchestrator_2:9002
- ROOT_DIR=/root/cosmian_data
- PORT=9002
- RUNTIME_PORT=10002
- RUNTIME_ADDRESS=http://runtime_2:10002
- PERSIST_DATA=true
- DATABASE_URL=postgres://orchestrator:orchestrator@db_2/orchestrator
volumes:
- ./data/participant_2/container:/root/cosmian_data
ports:
- "9002:9002"
command: /root/cosmian_server/orchestrator
depends_on:
- runtime_2
- db_2
#
## UI
#
orchestrator_ui_0:
container_name: orchestrator_ui_0
image: cosmian/orchestrator_ui:v1.4.3
environment:
- REACT_APP_API_URL=http://localhost:9000
volumes:
- ./data/nginx.conf:/etc/nginx/nginx.conf
- ./data/participant_0/certs:/etc/nginx/certs
ports:
- "3000:443"
- "4000:80"
orchestrator_ui_1:
container_name: orchestrator_ui_1
image: cosmian/orchestrator_ui:v1.4.3
environment:
- REACT_APP_API_URL=http://localhost:9001
volumes:
- ./data/nginx.conf:/etc/nginx/nginx.conf
- ./data/participant_1/certs:/etc/nginx/certs
ports:
- "3001:443"
- "4001:80"
orchestrator_ui_2:
container_name: orchestrator_ui_2
image: cosmian/orchestrator_ui:v1.4.3
environment:
- REACT_APP_API_URL=http://localhost:9002
volumes:
- ./data/nginx.conf:/etc/nginx/nginx.conf
- ./data/participant_2/certs:/etc/nginx/certs
ports:
- "3002:443"
- "4002:80"