-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose_dist.yml
223 lines (201 loc) · 7.59 KB
/
docker-compose_dist.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
services:
# PostgreSQL
db:
image: postgres:16
restart: 'always'
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
environment:
# IMPORTANT: these three params must be the same as POSTGRES_USERNAME, POSTGRES_PASSWORD, POSTGRES_DB
# below in 'multiomix' service respectively
POSTGRES_USER: 'multiomics'
POSTGRES_PASSWORD: 'multiomics'
POSTGRES_DB: 'multiomics'
POSTGRES_HOST_AUTH_METHOD: 'trust'
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./config/postgres/postgres.conf:/etc/postgresql/postgresql.conf
# There's a problem with IPVS connections timeout.
# See: https://github.com/moby/moby/issues/37466 or https://stackoverflow.com/a/64507844/7058363
deploy:
endpoint_mode: dnsrr
# MongoDB Server
mongo:
image: mongo:4.2
restart: 'always'
environment:
# IMPORTANT: these three params must be the same as MONGO_USERNAME, MONGO_PASSWORD, MONGO_DB
# below in 'multiomix' service respectively
MONGO_INITDB_ROOT_USERNAME: 'multiomics'
MONGO_INITDB_ROOT_PASSWORD: 'multiomics'
MONGO_INITDB_DATABASE: 'multiomics'
# Sets the config file
command: --config /etc/mongo/mongod.conf
volumes:
- mongo_data:/data/db
- mongo_config:/data/configdb
- ./config/mongo/mongod.conf:/etc/mongo/mongod.conf
# Redis Server for Websockets connections
redis:
image: redis:6.2.14-alpine
restart: 'always'
volumes:
- redis_data:/data
# Django Proxy Server
nginx:
image: nginx:1.27
restart: 'always'
ports:
- '80:8000'
# - '443:443' # Uncomment for HTTPS support
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- ./config/nginx/certificates:/etc/nginx/certificates
- static_data:/static
- media_data:/media
depends_on:
- multiomix
# Celery worker for correlation analysis
correlation-analysis-worker:
image: omicsdatascience/multiomix:5.4.0-celery
restart: 'always'
depends_on:
- db
- mongo
volumes:
- media_data:/src/media
environment:
# Celery parameters
QUEUE_NAME: 'correlation_analysis' # This MUST NOT be changed
CONCURRENCY: 2
# NOTE: in case of changes in the 'multiomix', PostgreSQL and/or MongoDB connection parameters, they MUST be
# changed here too!
# Celery worker for feature selection experiments
fs-experiments-worker:
image: omicsdatascience/multiomix:5.4.0-celery
restart: 'always'
depends_on:
- db
- mongo
volumes:
- media_data:/src/media
environment:
# Celery parameters
QUEUE_NAME: 'feature_selection' # This MUST NOT be changed
CONCURRENCY: 2
# NOTE: in case of changes in the 'multiomix', PostgreSQL and/or MongoDB connection parameters, they MUST be
# changed here too!
# Celery worker for statistical validations and trained models
stats-worker:
image: omicsdatascience/multiomix:5.4.0-celery
restart: 'always'
depends_on:
- db
- mongo
volumes:
- media_data:/src/media
environment:
# Celery parameters
QUEUE_NAME: 'stats' # This MUST NOT be changed
CONCURRENCY: 2
# NOTE: in case of changes in the 'multiomix', PostgreSQL and/or MongoDB connection parameters, they MUST be
# changed here too!
# Celery worker for inference experiments
inference-worker:
image: omicsdatascience/multiomix:5.4.0-celery
restart: 'always'
depends_on:
- db
- mongo
volumes:
- media_data:/src/media
environment:
# Celery parameters
QUEUE_NAME: 'inference' # This MUST NOT be changed
CONCURRENCY: 2
# NOTE: in case of changes in the 'multiomix', PostgreSQL and/or MongoDB connection parameters, they MUST be
# changed here too!
# Celery worker for sync CGDSStudies
sync-datasets-worker:
image: omicsdatascience/multiomix:5.4.0-celery
restart: 'always'
depends_on:
- db
- mongo
volumes:
- media_data:/src/media
environment:
# Celery parameters
QUEUE_NAME: 'sync_datasets' # This MUST NOT be changed
CONCURRENCY: 1 # NOTE: concurrency is set to minimum by default for this service
# NOTE: in case of changes in the 'multiomix', PostgreSQL and/or MongoDB connection parameters, they MUST be
# changed here too!
# Django Backend Server
multiomix:
image: omicsdatascience/multiomix:5.4.0
restart: 'always'
# environment:
# DJANGO_SETTINGS_MODULE: 'multiomics_intermediate.settings_prod'
# ENABLE_SECURITY: 'true'
# CSRF. Django 4.x need this.
# Hosts separated by comma ('http://', 'https://' prefixes are mandatory)
# Example: CSRF_TRUSTED_ORIGINS: 'http://127.0.0.1', 'http://127.0.0.1,https://127.0.0.1:8000', etc
# CSRF_TRUSTED_ORIGINS: ''
# Set this equal to the upstream server name in the NGINX config file in sites-available in case of
# using HTTPS
# ALLOWED_HOSTS: '*' # Needed to make websockets work
# LISTEN_PORT=8000
# LISTEN_IP=0.0.0.0
# RESULT_DATAFRAME_LIMIT_ROWS: 300000
# TABLE_PAGE_SIZE: 10
# PostgreSQL DB connection parameters (MUST match the parameters defined in the "db" service above)
# POSTGRES_USERNAME: 'multiomics'
# POSTGRES_PASSWORD: 'multiomics'
# POSTGRES_HOST: 'db'
# POSTGRES_PORT: 5432
# POSTGRES_DB: 'multiomics'
# Mongo DB connection parameters (MUST match the parameters defined in the "mongo" service above)
# MONGO_USERNAME: 'multiomics'
# MONGO_PASSWORD: 'multiomics'
# MONGO_HOST: 'mongo'
# MONGO_PORT: 27017
# MONGO_DB: 'multiomics'
# Redis
# REDIS_HOST: 'redis'
# REDIS_PORT: 6379
#
# For logging (by default LOG_FILE_PATH is /logs)
# LOG_FILE_PATH: /path/to/folder/log
volumes:
- static_data:/src/static
- media_data:/src/media
- logs_data:/logs
depends_on:
- db
- mongo
- correlation-analysis-worker
- fs-experiments-worker
- stats-worker
- inference-worker
- sync-datasets-worker
volumes:
mongo_data:
external: true
name: 'multiomics_intermediate_mongo_data'
mongo_config:
external: true
name: 'multiomics_intermediate_mongo_config'
postgres_data:
external: true
name: 'multiomics_intermediate_postgres_data'
redis_data:
external: true
name: 'multiomics_intermediate_redis_data'
static_data:
external: true
name: 'multiomics_intermediate_static_data'
media_data:
external: true
name: 'multiomics_intermediate_media_data'
logs_data:
external: true
name: 'multiomics_intermediate_logs_data'