forked from LucaCilibrasi/VariantHunter
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
39 lines (38 loc) · 1.63 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
#
# DOCKER COMPOSE FILE
# YAML file defining services, networks, and volumes for the Variant Hunter Docker application.
#
# Run the docker with the following commands:
# docker pull gecopolimi/varianthunter
# {parameters_list} docker-compose up
#
# More details at http://cerilab.deib.polimi.it/variant_hunter/about#docker
#
version: "3"
services:
app:
image: gecopolimi/varianthunter
command:
bash -c "
[ '${REGENERATE:-false}' == 'false' ]
&&
{
[ '${PUBLIC:-false}' == 'false' ]
&& { python -u ./backend/app.py -fp /backend/app/dataset/metadata.tsv -loc '${LOCATIONS:-all}' -ft ${FILE_TYPE:-gisaid} -sd ${START_DATE:-beginning} -ed ${END_DATE:-end};}
|| { python -u ./backend/app.py -fp /backend/app/dataset/metadata.tsv -loc '${LOCATIONS:-all}' -ft ${FILE_TYPE:-gisaid} -sd ${START_DATE:-beginning} -ed ${END_DATE:-end} -p;}
}
||
{
[ '${PUBLIC:-false}' == 'false' ]
&& { python -u ./backend/app.py -fp /backend/app/dataset/metadata.tsv -loc '${LOCATIONS:-all}' -ft ${FILE_TYPE:-gisaid} -sd ${START_DATE:-beginning} -ed ${END_DATE:-end -r};}
|| { python -u ./backend/app.py -fp /backend/app/dataset/metadata.tsv -loc '${LOCATIONS:-all}' -ft ${FILE_TYPE:-gisaid} -sd ${START_DATE:-beginning} -ed ${END_DATE:-end} -p -r;}
}
"
ports:
- "${PORT:-5000}:5000"
volumes:
- ${FILE_PATH:-./}:/backend/app/dataset/metadata.tsv # default value never used
- ${DB_PATH:-./}:/backend/app/data_e/ # default value never used
environment:
- PORT=${PORT:-5000}
- DB_PATH=${DB_PATH:-unset}