-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-example.yml
96 lines (96 loc) · 2.47 KB
/
docker-compose-example.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
version: '3'
#there are two uwsgi applications running through one nginx server
#rename this to docker-compose.yml and run using docker-compose up --build -d
#change .env and common.env to suit your environment
services:
omics:
build:
context: omics
dockerfile: Dockerfile # select Dockerfile.gpu for gpu-enabled version
args:
OMICSSERVER: ${OMICSSERVER}
OMICS_UID: ${OMICS_UID}
OMICS_GID: ${OMICS_GID}
env_file: common.env
volumes:
- data:/data
- ${EXTERNALDIR}:/data/external
- ${MODULEDIR}:/modules
- jobserverexecution:/cromwell-executions
- tmp:/tmp
container_name: omics_omics
jobserver:
build:
context: jobserver
dockerfile: Dockerfile # select Dockerfile.gpu for gpu-enabled version
args:
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
OMICS_UID: ${OMICS_UID}
OMICS_GID: ${OMICS_GID}
env_file: common.env
privileged: true
volumes:
- data:/data
- ${EXTERNALDIR}:/data/external
- ${MODULEDIR}:/modules
- /var/run/docker.sock:/var/run/docker.sock
- tmp:/tmp
- jobserverexecution:/cromwell-executions
depends_on:
- jobserverdb
container_name: omics_jobserver
jobserverdb:
image: mariadb:10.4
env_file: common.env
volumes:
- jobserverdb:/var/lib/mysql
container_name: omics_jobserver_db
proxy:
build:
context: proxy
args:
omics_url: ${OMICSSERVER}
OMICS_UID: ${OMICS_UID}
OMICS_GID: ${OMICS_GID}
env_file: common.env
ports:
- ${HOSTPORT}:80
volumes:
- data:/data
- tmp:/tmp
- ${EXTERNALDIR}:/data/external
- jobserverexecution:/cromwell-executions
depends_on:
- jobserver
- omics
container_name: omics_proxy
redis:
image: redis:alpine
env_file: common.env
container_name: omics_redis
rq_worker:
image: omics_dashboard_rq_worker
build:
context: omics
dockerfile: Dockerfile
args:
OMICSSERVER: ${OMICSSERVER}
OMICS_GID: ${OMICS_GID}
OMICS_UID: ${OMICS_UID}
env_file: common.env
deploy:
mode: replicated
replicas: 4
volumes:
- data:/data
- ${EXTERNALDIR}:/data/external
- ${MODULEDIR}:/modules
- jobserverexecution:/cromwell-executions
- tmp:/tmp
container_name: omics_rq_worker
entrypoint: /rq_worker_entrypoint.sh
volumes:
data:
tmp:
jobserverdb:
jobserverexecution: