-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
192 lines (185 loc) · 5.39 KB
/
docker-compose.yml
File metadata and controls
192 lines (185 loc) · 5.39 KB
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
188
189
190
191
192
services:
exaflow_aggregation_server:
image: madgik/exaflow_aggregation_server:${EXAFLOW}
ports:
- "50051:50051"
environment:
PORT: 50051
MAX_GRPC_CONNECTIONS: 10
MAX_WAIT_FOR_AGGREGATION_INPUTS: 30
LOG_LEVEL: INFO
restart: unless-stopped
networks:
default:
ipv4_address: 172.28.0.13
exaflow_controller:
image: madgik/exaflow_controller:${EXAFLOW}
ports:
- "5000:5000"
environment:
NODE_IDENTIFIER: controller
FEDERATION: dementia
LOG_LEVEL: INFO
FRAMEWORK_LOG_LEVEL: INFO
DEPLOYMENT_TYPE: LOCAL
WORKER_LANDSCAPE_AGGREGATOR_UPDATE_INTERVAL: 30
WORKER_TASKS_TIMEOUT: 30
FLOWER_ENABLED: false
FLOWER_EXECUTION_TIMEOUT: 30
FLOWER_SERVER_PORT: 8080
LOCALWORKERS_CONFIG_FILE: /opt/config/localworkers_config.json
LOCALWORKERS_DNS: ""
LOCALWORKERS_PORT: ""
AGGREGATION_SERVER_ENABLED: true
AGGREGATION_SERVER_DNS: 172.28.0.13:50051
SMPC_ENABLED: false
SMPC_OPTIONAL: false
SMPC_COORDINATOR_ADDRESS: ""
SMPC_GET_RESULT_INTERVAL: 10
SMPC_GET_RESULT_MAX_RETRIES: 100
DP_ENABLED: false
DP_SENSITIVITY: ""
DP_PRIVACY_BUDGET: ""
depends_on:
- exaflow_aggregation_server
volumes:
- ./config:/opt/config
restart: unless-stopped
networks:
default:
ipv4_address: 172.28.0.10
exaflow_global_worker:
image: madgik/exaflow_worker:${EXAFLOW}
environment:
WORKER_IDENTIFIER: globalworker
WORKER_ROLE: GLOBALWORKER
FEDERATION: dementia
LOG_LEVEL: INFO
FRAMEWORK_LOG_LEVEL: INFO
DUCKDB_PATH: /tmp/globalworker.duckdb
DATA_PATH: /opt/data
CONTROLLER_IP: 172.28.0.10
CONTROLLER_PORT: 5000
WORKER_TASKS_TIMEOUT: 30
PROTECT_LOCAL_DATA: false
GRPC_IP: 172.28.0.11
GRPC_PORT: 5670
AGGREGATION_SERVER_ENABLED: true
AGGREGATION_SERVER_DNS: 172.28.0.13:50051
SMPC_ENABLED: false
SMPC_OPTIONAL: false
SMPC_CLIENT_ID: ""
SMPC_CLIENT_ADDRESS: ""
SMPC_COORDINATOR_ADDRESS: ""
depends_on:
- exaflow_controller
- exaflow_aggregation_server
restart: unless-stopped
networks:
default:
ipv4_address: 172.28.0.11
exaflow_local_worker1:
image: madgik/exaflow_worker:${EXAFLOW}
environment:
WORKER_IDENTIFIER: localworker1
WORKER_ROLE: LOCALWORKER
FEDERATION: dementia
LOG_LEVEL: INFO
FRAMEWORK_LOG_LEVEL: INFO
DUCKDB_PATH: /tmp/localworker1.duckdb
DATA_PATH: /opt/data
CONTROLLER_IP: 172.28.0.10
CONTROLLER_PORT: 5000
WORKER_TASKS_TIMEOUT: 30
PROTECT_LOCAL_DATA: false
GRPC_IP: 172.28.0.12
GRPC_PORT: 5671
AGGREGATION_SERVER_ENABLED: true
AGGREGATION_SERVER_DNS: 172.28.0.13:50051
SMPC_ENABLED: false
SMPC_OPTIONAL: false
SMPC_CLIENT_ID: ""
SMPC_CLIENT_ADDRESS: ""
SMPC_COORDINATOR_ADDRESS: ""
depends_on:
- exaflow_controller
- exaflow_aggregation_server
volumes:
- ./data:/opt/data
restart: unless-stopped
networks:
default:
ipv4_address: 172.28.0.12
platform_backend_db:
image: postgres:18.3-alpine
volumes:
- ./.stored_data/platform_backenddb:/var/lib/postgresql
- ../kubernetes/files/platform-backend-db-init.sh:/docker-entrypoint-initdb.d/10-bootstrap-platform-db.sh:ro
hostname: platform_backend_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
POSTGRES_DB: postgres
PLATFORM_DB_NAME: portal
PLATFORM_DB_USER: portal
PLATFORM_DB_PASSWORD: portalpwd
command: -p 5433
ports:
- '5433:5433'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -h localhost -p 5433"]
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
platform-backend:
image: hbpmip/platform-backend:${PLATFORM_BACKEND}
ports:
- '8080:8080'
- '8089:8089'
depends_on:
platform_backend_db:
condition: service_healthy
exaflow_controller:
condition: service_started
environment:
### LOGGER ###
LOG_LEVEL: INFO
LOG_LEVEL_FRAMEWORK: INFO
FEDERATION: dementia
### Database ###
PLATFORM_DB_URL: jdbc:postgresql://platform_backend_db:5433/portal
PLATFORM_DB_SERVER: platform_backend_db:5433
PLATFORM_DB_USER: portal
PLATFORM_DB_PASSWORD: portalpwd
### Exaflow ###
ALGORITHM_UPDATE_INTERVAL: 30 # seconds
EXAFLOW_URL: http://exaflow_controller:5000
PLATFORM_UI_BASE_URL: "${PLATFORM_UI_BASE_URL}"
### Keycloak (external) ###
AUTHENTICATION: "${AUTHENTICATION}"
KEYCLOAK_AUTH_URL: "${KEYCLOAK_AUTH_URL}"
KEYCLOAK_REALM: "${KEYCLOAK_REALM}"
KEYCLOAK_CLIENT_ID: "${KEYCLOAK_CLIENT_ID}"
KEYCLOAK_CLIENT_SECRET: "${KEYCLOAK_CLIENT_SECRET}"
KEYCLOAK_SSL_REQUIRED: "${KEYCLOAK_SSL_REQUIRED}"
volumes:
- ./config:/opt/platform/api
restart: unless-stopped
platform_ui:
image: hbpmip/platform-ui:${PLATFORM_UI}
ports:
- "80:80"
environment:
PLATFORM_BACKEND_SERVER: platform-backend:8080
PLATFORM_BACKEND_CONTEXT: services
NOTEBOOK_ENABLED: 0
MIP_VERSION: "${MIP}"
depends_on:
- platform-backend
restart: unless-stopped
networks:
default:
ipam:
config:
- subnet: 172.28.0.0/24