-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
265 lines (263 loc) · 6.86 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
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
version: "3.2"
services:
nginx-wrapper:
image: cbioportal-cloud-nginx-wrapper:latest
build:
context: services/nginx-wrapper
ports: #NGINX_WRAPPER
- "${NGINX_WRAPPER_PORT_HTTP}:80"
- "${NGINX_WRAPPER_PORT_HTTPS}:443"
volumes:
- type: bind
source: ./services/nginx-wrapper/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
- type: bind
source: ./mountpoints/nginx-wrapper/cert.crt
target: /etc/nginx/cert.crt
read_only: true
- type: bind
source: ./mountpoints/nginx-wrapper/cert.key
target: /etc/nginx/cert.key
read_only: true
- type: bind
source: ./mountpoints/dashboard/
target: /etc/nginx/html/dashboard
read_only: true
depends_on:
- cbioportal
links:
- cbioportal
networks:
- cbio-bridge
cbioportal:
image: cbioportal-cloud:latest
build:
context: services/cbioportal
args:
BRANCH: ${CBIOPORTAL_BRANCH}
SEED_SQL_FILE: ${CBIOPORTAL_SEED_SQL_FILE}
restart: always
environment:
BRANCH: ${CBIOPORTAL_BRANCH}
DB_HOST: cbioportal-mysql
DB_PORT: "3306"
DB_USER: root
DB_PASSWORD: &mysql_root_password letmein
DB_NAME: &mysql_database cbioportal
DO_DB_MIGRATE: ${DO_DB_MIGRATE:-no}
MVN_GOALS: clean install
FORCE_MVN_BUILD: ${FORCE_MVN_BUILD:-no}
volumes:
- type: bind
source: ./mountpoints/host
target: /host
read_only: false
- type: bind
source: ./mountpoints/mvn-repo
target: /root/.m2/repository
read_only: false
- type: bind
source: ./services/cbioportal/resources
target: /resources
read_only: false
- type: bind
source: ./services/cbioportal/context.xml
target: /usr/local/tomcat/conf/context.xml
read_only: true
- type: bind
source: ./services/cbioportal/server.xml
target: /usr/local/tomcat/conf/server.xml
read_only: true
- type: bind
source: ."${CBIOPORTAL_EXTERNAL_DATA}"
target: /data/cbioportal
read_only: false
depends_on:
- cbioportal-mysql
- oncokb
- genome-nexus
- session-service
links:
- cbioportal-mysql
- oncokb
- genome-nexus
- session-service
networks:
cbio-bridge:
ipv4_address: ${CBIOPORTAL_IPV4_ADDR}
cbioportal-mysql:
image: cbioportal-cloud-cbioportal-mysql:latest
build:
context: services/cbioportal-mysql
environment:
MYSQL_ROOT_PASSWORD: *mysql_root_password
MYSQL_DATABASE: *mysql_database
restart: always
volumes:
- type: bind
source: ./mountpoints/host
target: /host
read_only: false
- type: bind
source: ./services/cbioportal-mysql/custom.cnf
target: /etc/mysql/conf.d/custom.cnf
read_only: true
- type: bind
source: ./mountpoints/cbioportal-mysql-data
target: /var/lib/mysql
read_only: false
command: --ssl=0
networks:
cbio-bridge:
ipv4_address: ${CBIOPORTAL_MYSQL_IPV4_ADDR}
oncokb:
image: cbioportal-cloud-oncokb:latest
build:
context: services/oncokb
args:
BRANCH: ${ONCOKB_BRANCH}
DB_HOST: oncokb-mysql
DB_PORT: "3306"
DB_USER: root
DB_PASSWORD: letmein
DB_NAME: oncokb
restart: always
depends_on:
- oncokb-mysql
links:
- oncokb-mysql
networks:
- cbio-bridge
oncokb-mysql:
image: cbioportal-cloud-oncokb-mysql:latest
build:
context: services/oncokb-mysql
args:
BRANCH: ${ONCOKB_BRANCH}
environment:
MYSQL_ROOT_PASSWORD: letmein
MYSQL_DATABASE: oncokb
restart: always
networks:
- cbio-bridge
genome-nexus:
image: cbioportal-cloud-genome-nexus:latest
build:
context: services/genome-nexus
args:
BRANCH: ${GENOME_NEXUS_BRANCH}
environment:
GN_MONGO_HOST: genome-nexus-mongodb
GN_MONGO_PORT: "27017"
GN_MONGO_NAME: annotator
SERVER_PORT: 8888
depends_on:
- genome-nexus-mongodb
links:
- genome-nexus-mongodb
restart: always
networks:
- cbio-bridge
genome-nexus-mongodb:
image: cbioportal-cloud-genome-nexus-mongodb:latest
build:
context: services/genome-nexus-mongodb
args:
BRANCH: ${GENOME_NEXUS_MONGODB_BRANCH}
restart: always
networks:
- cbio-bridge
session-service:
image: cbioportal-cloud-session-service:latest
build:
context: services/session-service
args:
BRANCH: ${SESSION_SERVICE_BRANCH}
environment:
SS_MONGO_HOST: session-service-mongodb
SS_MONGO_PORT: "27017"
SS_MONGO_NAME: session-service
SERVER_PORT: "8090"
depends_on:
- session-service-mongodb
links:
- session-service-mongodb
restart: always
networks:
- cbio-bridge
session-service-mongodb:
image: cbioportal-cloud-session-service-mongodb:latest
build:
context: services/session-service-mongodb
restart: always
networks:
- cbio-bridge
cancerhotspots:
image: cbioportal-cloud-cancerhotspots:latest
build:
context: services/cancerhotspots
args:
BRANCH: ${CANCERHOTSPOTS_BRANCH}
restart: always
networks:
- cbio-bridge
import-pipeline:
build:
context: services/import-pipeline
environment:
ACCESS_TOKEN: ${DROPBOX_ACCESS_TOKEN}
ALLOWED_FOLDER: ${DROPBOX_ALLOWED_FOLDERS}
ADMIN_EMAILS: ${ADMIN_EMAILS}
PORTAL_HOME: /host/cbioportal
DOWNLOAD_DIR: /importer/files
DB_LOCATION: /importer/main.db
STUDY_LINK_DIR: /study_link_dir
SCHEMA_SQL_PATH: /schema.sql
DISABLE_USER_SYNC: ${IMPORT_PIPELINE_DISABLE_USER_SYNC}
DISABLE_UNAUTH: ${IMPORT_PIPELINE_DISABLE_UNAUTH}
DB_HOST: cbioportal-mysql
DB_NAME: *mysql_database
DB_USER: root
DB_PASSWORD: *mysql_root_password
GCLOUD_CREDS: ${GCLOUD_CREDS}
AUTH_SHEET_KEY: ${AUTH_SHEET_KEY}
AUTH_SHEET_WORKSHEET_NAME: ${AUTH_SHEET_WORKSHEET_NAME}
AUTH_SHEET_KEYMAP: ${AUTH_SHEET_KEYMAP}
AUTH_SHEET_TRUEVAL: ${AUTH_SHEET_TRUEVAL}
volumes:
- type: bind
source: ./mountpoints/host
target: /host
read_only: false
- type: bind
source: ./mountpoints/importer
target: /importer
read_only: false
- type: bind
source: ./mountpoints/dashboard
target: /dashboard
read_only: false
- type: bind
source: ./services/import-pipeline/schema.sql
target: /schema.sql
read_only: true
- type: bind
source: ./services/import-pipeline/import_service
target: /importer/import_service
read_only: true
networks:
- cbio-bridge
depends_on:
- cbioportal
- cbioportal-mysql
links:
- cbioportal
- cbioportal-mysql
networks:
cbio-bridge:
driver: bridge
ipam:
driver: default
config:
- subnet: ${SUBNET}