This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
forked from galaxy-genome-annotation/docker-tripal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
112 lines (105 loc) · 3.77 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
# This is a sample configuration to run a Tripal instance with Docker-Compose.
version: '3'
services:
tripal:
build:
context: ./divseek_canada
dockerfile: Dockerfile
args:
DIVSEEK_ADMIN_USER: "${DC_ADMIN_USER}"
DIVSEEK_DB_HOST: "chado"
links:
- chado:postgres
volumes:
- ../${DC_CROP}/volumes/tripal/sites:/var/www/html/sites
- ../${DC_CROP}/volumes/tripal/private:/var/www/private
environment:
UPLOAD_LIMIT: 20M
MEMORY_LIMIT: 128M
DB_HOST: "chado"
DB_NAME: "postgres"
#
SITE_NAME: "${DC_SITE_NAME} ${DC_CROP}"
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"
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
https://github.com/tripal/trpdownload_api
https://github.com/UofS-Pulse-Binfo/nd_genotypes.git
https://github.com/UofS-Pulse-Binfo/genotypes_loader.git
https://github.com/tripal/tripal_jbrowse"
#
# Avoiding a strange runtime error with tripal_bulk_loader by NOT enabling it for now
#
TRIPAL_ENABLE_MODULES: "bootstrap maillog smtp jquery_update panels advanced_help page_manager tracker forum
tripal_jbrowse tripal_galaxy brapi nd_genotypes genotypes_loader tripal_jbrowse_mgmt"
# tripal_jbrowse tripal_galaxy brapi tripal_bulk_loader nd_genotypes genotypes_loader tripal_jbrowse_mgmt"
THEME: "bootstrap"
ports:
- "8200:80"
networks:
divseek:
depends_on:
- chado
- elasticsearch
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:
- ../${DC_CROP}/volumes/tripal/db:/var/lib/postgresql/data/
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1
environment:
TAKE_FILE_OWNERSHIP: "true"
networks:
divseek:
volumes:
- ../${DC_CROP}/volumes/index:/usr/share/elasticsearch/data
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"
networks:
divseek:
#
# replacing deprecated 'links' with chado service network aliases?
#
#links:
# - "tripal_db:db"
jbrowse:
image: quay.io/galaxy-genome-annotation/jbrowse:v1.16.2
ports:
- "8203:80"
networks:
divseek:
volumes:
- ../${DC_CROP}/volumes/jbrowse/data:/data
networks:
divseek:
driver: bridge