-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose_dist.yml
More file actions
210 lines (191 loc) · 6.77 KB
/
docker-compose_dist.yml
File metadata and controls
210 lines (191 loc) · 6.77 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# Complete the SECRET_KEY with the output of `get_random_secret_key()` from Django
x-common-variables: &common-variables
SECRET_KEY: '' # <- Set this to the output of `get_random_secret_key()` from Django
services:
# PostgreSQL
db:
image: postgres:16
restart: 'always'
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
environment:
<<: *common-variables
# IMPORTANT: these must match the credentials below in the 'multiomix' service
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
deploy:
endpoint_mode: dnsrr
# MongoDB Server
mongo:
image: mongo:4.2
restart: 'always'
environment:
# IMPORTANT: these must match credentials in the 'multiomix' service
MONGO_INITDB_ROOT_USERNAME: 'multiomics'
MONGO_INITDB_ROOT_PASSWORD: 'multiomics'
MONGO_INITDB_DATABASE: 'multiomics'
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
redis:
image: redis:6.2.14-alpine
restart: 'always'
volumes:
- redis_data:/data
# Django Proxy (NGINX)
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.6.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
# Celery worker for feature selection
fs-experiments-worker:
image: omicsdatascience/multiomix:5.6.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
# Celery worker for statistical validation
stats-worker:
image: omicsdatascience/multiomix:5.6.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
# Celery worker for inference
inference-worker:
image: omicsdatascience/multiomix:5.6.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
# Celery worker for syncing datasets
sync-datasets-worker:
image: omicsdatascience/multiomix:5.6.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
# Django backend service
multiomix:
image: omicsdatascience/multiomix:5.6.0
restart: 'always'
environment:
# Common variables including the needed SECRET_KEY for production
<<: *common-variables
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'