This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
384 lines (359 loc) · 11.7 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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
version: '3'
services:
proxy: ## Proxy Image
image: nginx:latest
ports:
- "80:80"
- "443:443"
#
# deprecating links and referring to 'divseek' network?
#
#links:
# - remoteuser
# - apollo
# - galaxy
# - tripal
# #- ngadmin
# - chado_jb
# - jbrowse
# - jbrowse-graphql
# - postgrest
# #- postgrest_tripal
# - postgraphql
# - pgadmin4
networks:
divseek:
volumes:
- ./nginx:/etc/nginx/conf.d
# Compose workaround for strange file resolution issue for NGINX include directive
- ./nginx/service.locations:/etc/nginx/service.locations
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
depends_on:
- galaxy
- tripal
- apollo
- jbrowse
- jbrowse-graphql
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
remoteuser: ## Remote User Proxy for Apollo (based on Galaxy Auth)
image: "quay.io/erasche/gx-cookie-proxy:latest"
environment:
GALAXY_DB_URL: "postgresql://galaxy:galaxy@galaxy:5432/galaxy?client_encoding=utf8&sslmode=disable"
GALAXY_SECRET: "0xD1v533kCanuck"
GXC_BACKEND_URL: "apollo:8080"
GXC_LOGLEVEL: DEBUG
networks:
divseek:
depends_on:
- galaxy
- apollo
#
# deprecating links and referring to explicit 'divseek' network?
#
# links:
# - galaxy:galaxy
galaxy: ## Galaxy, yay!
image: quay.io/galaxy-genome-annotation/docker-galaxy-annotation:master
environment:
NONUSE: nodejs,proftp,reports
GALAXY_LOGGING: full
GALAXY_CONFIG_BRAND: "GMOD"
GALAXY_WEBAPOLLO_URL: "http://apollo:8080/apollo"
GALAXY_WEBAPOLLO_EXT_URL: "/apollo"
GALAXY_WEBAPOLLO_PASSWORD: "password"
GALAXY_WEBAPOLLO_USER: [email protected]
GALAXY_SHARED_DIR: /apollo-data
GALAXY_JBROWSE_SHARED_DIR: /jbrowse/data
GALAXY_ID_SECRET: "0xD1v533kCanuck"
GALAXY_CHADO_DBHOST: chado
# added this following abretaud comment on 20 Dec 2018 at
# https://github.com/galaxy-genome-annotation/dockerized-gmod-deployment/issues/17
#GALAXY_CONFIG_COOKIE_PATH: /galaxy
#PROXY_PREFIX: /galaxy
#GALAXY_WEBAPOLLO_EXT_URL: "/galaxy/apollo"
networks:
divseek:
volumes:
- "../volumes/galaxy:/export"
- "./galaxy.ini:/etc/galaxy/galaxy.ini"
apollo: ## Apollo, the genome annotation suite
image: quay.io/erasche/apollo:remote_user
#
# deprecating links and referring to 'divseek' network?
#
# links:
# "apollo_db"
# "chado"
environment:
CONTEXT_PATH: "apollo"
WEBAPOLLO_DB_USERNAME: postgres
WEBAPOLLO_DB_PASSWORD: postgres
WEBAPOLLO_DB_DRIVER: "org.postgresql.Driver"
WEBAPOLLO_DB_DIALECT: "org.hibernate.dialect.PostgresPlusDialect"
WEBAPOLLO_DB_URI: "jdbc:postgresql://apollo_db/postgres"
WEBAPOLLO_CHADO_DB_USERNAME: postgres
WEBAPOLLO_CHADO_DB_PASSWORD: postgres
WEBAPOLLO_CHADO_DB_DRIVER: "org.postgresql.Driver"
WEBAPOLLO_CHADO_DB_DIALECT: "org.hibernate.dialect.PostgresPlusDialect"
WEBAPOLLO_CHADO_DB_URI: "jdbc:postgresql://chado/postgres"
# Optional, allow image to 'wait'
WEBAPOLLO_DB_HOST: apollo_db
WEBAPOLLO_DB_PORT: 5432
WEBAPOLLO_DB_NAME: postgres
WEBAPOLLO_CHADO_DB_HOST: chado
WEBAPOLLO_CHADO_DB_PORT: 5432
WEBAPOLLO_CHADO_DB_NAME: postgres
# Configure admin user email
APOLLO_ADMIN_EMAIL: "${DC_ADMIN_EMAIL}"
# added this following abretaud comment on 20 Dec 2018 at
# https://github.com/galaxy-genome-annotation/dockerized-gmod-deployment/issues/17
APOLLO_PATH_PREFIX: "/apollo/"
networks:
divseek:
depends_on:
- galaxy
- apollo_db
volumes:
- "../volumes/galaxy:/export"
- "./galaxy.ini:/etc/galaxy/galaxy.ini"
apollo_db: ## Apollo's Postgres DB
image: postgres:9.5
environment:
POSTGRES_PASSWORD: postgres
networks:
divseek:
volumes:
- "../volumes/apollo:/var/lib/postgresql/data/"
postgrest:
image: quay.io/erasche/postgrest:latest
environment:
POSTGREST_JWT_SECRET: thisisnotarealsecret
POSTGREST_SCHEMA: chado
PG_PASSWORD: postgres
PG_DB: postgres
#
# deprecating links and referring to 'divseek' network?
#
# links:
# - "chado:db"
networks:
divseek:
depends_on:
- chado
#
# March 19, 2019 - strange error with PostGraphQL start-up,
# so I'll turn it off for now (also in the NGINX service.locations)
#
#postgraphql: ## GraphQL interface to Postgres
# image: erasche/postgraphql:gmod-hacks
# environment:
# DB_GRAPHQL_PATH: "/graphql"
# DB_GRAPHIQL_PATH: "/graphiql"
# PG_SECRET: "0xD1v533kCanuck"
# PGUSER: postgres
# PGPASSWORD: postgres
# PGHOST: chado
# PGPORT: 5432
# PGDATABASE: postgres
# DB_SCHEMA: "public,chado"
#
# deprecating links and referring to 'divseek' network?
#
# links:
# - "chado"
# networks:
# divseek:
# depends_on:
# - chado
#
# March 19, 2019 - strange error with PostGraphQL start-up,
# so I'll turn it off for now (also in the docker-compose.yml build)
# plus all services here calling it (above and below)
#
#postgraphql-refseqs: ## PostGraphQL refseq server (required for JBrowse integration)
# build: refseqs
# environment:
# PGUSER: postgres
# PGPASSWORD: postgres
# PGHOST: chado
# PGPORT: 5432
# PGDATABASE: postgres
#
# deprecating links and referring to 'divseek' network?
#
# links:
# - "chado:db"
# networks:
# divseek:
# depends_on:
# - chado
pgadmin4: ## Postgres Admin Site
image: thajeztah/pgadmin4
ports:
- 8201:5050
#
# replacing deprecated 'links' with chado service network aliases?
#
#links:
# - "apollo_db:apollo"
# - "chado:tripal"
networks:
divseek:
volumes:
- "./pgadmin4.db:/pgadmin/config/pgadmin4.db"
depends_on:
- apollo_db
- chado
#ngadmin:
#image: quay.io/erasche/chado-angular-admin:latest
#links:
#- "postgrest"
#- "postgrest_tripal"
#ports:
#- "8400:80"
chado_jb:
image: quay.io/erasche/chado-jbrowse-connector:latest
environment:
POSTGRES_PASSWORD: postgres
#
# Production NGINX needs to proxy to distinct container host server ports
#
# NGINX should proxy jbrowse to staging server port 8203
#
SITE_PATH: "${DC_BASE_URL_PROTO}${DC_SITE_BASE_HOSTNAME}/jbrowse/"
#
# NGINX should proxy jbrowse_actual to staging server port 8202
#
JBROWSE: "${DC_BASE_URL_PROTO}${DC_SITE_BASE_HOSTNAME}/jbrowse_actual/"
ports:
- "8202:8500"
#
# replacing deprecated 'links' with chado service network aliases?
#
#links:
# - "tripal_db:db"
networks:
divseek:
depends_on:
- chado
chado: # Tripal's Chado Database
image: quay.io/galaxy-genome-annotation/chado:1.31-jenkins21-pg9.5
environment:
POSTGRES_PASSWORD: "postgres"
# The default chado image would try to install the schema on first run, we just want the tools to be available.
# The reason why is because Tripal will install the schema for us, but won't be able to run if there's an existing schema
INSTALL_CHADO_SCHEMA: 0
INSTALL_YEAST_DATA: 0
PGDATA: "/var/lib/postgresql/data/"
networks:
divseek:
aliases:
- db
- tripal
volumes:
- ../volumes/tripal/db:/var/lib/postgresql/data/
tripal:
build:
context: ./divseek_canada
dockerfile: Dockerfile
args:
DIVSEEK_ADMIN_USER: "${DC_ADMIN_USER}"
DIVSEEK_DB_HOST: "chado"
volumes:
- ../volumes/tripal/sites:/var/www/html/sites
- ../volumes/tripal/private:/var/www/private
environment:
UPLOAD_LIMIT: 20M
MEMORY_LIMIT: 128M
DB_HOST: "chado"
DB_NAME: "postgres"
#
SITE_NAME: "${DC_SITE_NAME}"
BASE_URL_PROTO: "${DC_BASE_URL_PROTO}"
BASE_URL_PATH: "${DC_BASE_URL_PATH}"
BASE_URL: "${DC_BASE_URL_PROTO}${DC_SITE_BASE_HOSTNAME}${DC_BASE_URL_PATH}"
#
TRIPAL_GIT_CLONE_LIBRARIES: "https://github.com/galaxyproject/blend4php.git
https://github.com/SystemDevil/PHP_XLSXWriter_plus.git
https://github.com/elastic/elasticsearch-php.git
https://github.com/d3/d3.git"
#elasticsearch recommends composer, but maybe this will work too
TRIPAL_DOWNLOAD_MODULES: "bootstrap maillog smtp jquery_update panels advanced_help"
TRIPAL_GIT_CLONE_MODULES: "https://github.com/tripal/tripal_jbrowse.git
https://github.com/tripal/brapi.git
https://github.com/tripal/trpdownload_api.git
https://github.com/tripal/tripal_jbrowse.git
https://github.com/uofs-pulse-binfo/vcf_filter.git
https://github.com/UofS-Pulse-Binfo/analyzedphenotypes.git
https://github.com/tripal/tripal_elasticsearch.git
https://github.com/tripal/trpfancy_fields.git"
#https://github.com/UofS-Pulse-Binfo/nd_genotypes.git
#https://github.com/UofS-Pulse-Binfo/genotypes_loader.git"
TRIPAL_ENABLE_MODULES: "bootstrap maillog smtp jquery_update panels advanced_help page_manager tracker forum
tripal_jbrowse tripal_galaxy brapi tripal_jbrowse_mgmt
trpfancy_fields dragndrop_upload vcf_filter analyzedphenotypes tripal_elasticsearch"
#
# ignore nd_genotypes for now...
#
#nd_genotypes genotypes_loader
#
# Avoiding a strange runtime error with tripal_bulk_loader by NOT enabling it for now
# tripal_bulk_loader"
THEME: "bootstrap"
ports:
- "8200:80"
#
# replacing deprecated 'links' with 'divseek' network?
#
#links:
# - chado:postgres
networks:
divseek:
depends_on:
- chado
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1
environment:
TAKE_FILE_OWNERSHIP: "true"
networks:
divseek:
volumes:
- ../volumes/index:/usr/share/elasticsearch/data
jbrowse:
image: quay.io/galaxy-genome-annotation/jbrowse:v1.12.5
networks:
divseek:
depends_on:
- galaxy
volumes:
- "../volumes/galaxy:/export"
- "./galaxy.ini:/etc/galaxy/galaxy.ini"
#
# Alternate jbrowse configuration? (from docker-tripal experiment?)
# Not using it because of uncertainty on how it would mesh with Galaxy?
#
# jbrowse:
# image: quay.io/galaxy-genome-annotation/jbrowse:v1.16.2
# ports:
# - "8203:80"
# networks:
# divseek:
# volumes:
# - ../volumes/jbrowse/data:/data
jbrowse-graphql:
image: quay.io/galaxy-genome-annotation/jbrowse:v1.12.5
networks:
divseek:
volumes:
- "./jbgraphql:/data"
networks:
divseek:
driver: bridge