-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (79 loc) · 4.13 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
version: '3.7'
services:
redis:
image: adoni5/minotourapp_redis
container_name: redis
volumes:
- redis_minotour:/redis_files
db:
image: mariadb
container_name: db
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: minotour
MYSQL_USER: dba
MYSQL_PASSWORD: dba
volumes:
- db_data_dir:/var/lib/mysql
web:
image: adoni5/minotourapp_web
command: bash --login -c "conda deactivate && uwsgi --ini minotourapp_uwsgi.ini && python manage.py makemigrations && python manage.py migrate && python manage.py loaddata fixtures/auxiliary_data.json && /etc/init.d/celeryd start && celery -A minotourapp beat -l debug -f /var/lib/minotour/logs/celerybeat.log --detach && nginx -g 'daemon off;' && echo done"
container_name: web
environment:
MT_DB_ENGINE: 'django.db.backends.mysql'
MT_DB_NAME: minotour
MT_DB_USER: dba
MT_DB_PASS: dba
MT_DB_PORT: 3306
MT_DB_HOST: db
MT_SECRET_KEY: 'hello_secret_key!!'
MT_DJANGO_DEBUG: '0'
MT_TWITTOKEN: ''
MT_TWITTOKEN_SECRET: ''
MT_TWITCONSUMER_KEY: ''
MT_TWITCONSUMER_SECRET: ''
MT_MINIMAP2: '/var/lib/minotour/apps/minotourapp/extra/minimap2-2.17_x64-linux/minimap2'
MT_ARTIC_SCHEME_DIR: '/var/lib/minotour/apps/data/primer_schemes' # Read the Artic scheme directories, found where the Artic NCOV piprline github repo was clones.
MT_ARTIC_MAX_PIPELINES: "1" # Maximum number of Artic tasks to be run at any one time
MT_CELERY_WORKER_COUNT: "2" # Number of Celery workers to start, no more than number of CPU cores
MT_CELERY_MINIMAP2_WORKER_COUNT: "1" # Number of celery minimap2 threads to start, no more than num CPU cores
MT_TIME_UNTIL_INACTIVE: "7" # Number of days since last flowcell activity until a flowcell is listed as inactive
MT_TIME_UNTIL_ARCHIVE: "14" # Number of days since last flowcell activity until a flowcell is archived and fastq data deleted
MT_SKIP_SAVING_SEQUENCE: "1"
MT_ALLOW_UPLOAD: "1" # Boolean value, 1 or 0. If true, data can be uplaoded to the server. If false, it cannot be.
MT_DESTROY_ARTIC_EVIDENCE: "0" # Boolean value if True (1), data that could potentially hold sensitive patient data that is fed into the artic pipeline is removed 12 hours after the run is finished.
MT_TWEET_CELERY_FAILURES: 0 # Boolean value if True (1), failures in some celery tasks are tweeted to the administrator account for this minoTour instance.
MT_SERVER_URL: "localhost" # if not setting up a server don't worry about this - it just shows the url on the client page for the example commands
MT_ARTIC_ENV: "artic"
MT_ARTIC_MEDAKA_MODEL: "r941_min_high_g351"
MT_ARTIC_MIN_LEN: 1000
MT_ARTIC_MAX_LEN: 1400
# preferred coverage depth for artic
MT_ARTIC_NORMALIZE: 200
MT_ARTIC_THREADS: 4
MT_ARTIC_MIN_AMPS_PERC: "90"
MT_IDEAL_READ_CONSTANT: "100000"
# Boolean value if True, data that could potentially hold sensitive patient data that is fed into the artic pipeline is removed 12 hours after the run is finished.
MT_COVERAGE_PER_AMPLICON: "20"
# the bin which aln2type is under todo add to dockerfile when i have time
MT_ALN2TYPE_BIN: "/root/miniconda3/bin/"
MT_CENTRIFUGE_INDEX: "/var/lib/minotour/apps/data/centrifuge_indexes"
ports:
- 8100:8100
depends_on:
- db
- redis
volumes:
- ./minotourapp_nginx.conf:/etc/nginx/minotourapp_nginx.conf
- type: bind
source: ./minotour_files
target: /var/lib/minotour/apps/data
- type: volume
source: redis_minotour
target: /redis_data
volume:
nocopy: true
restart: on-failure
volumes:
db_data_dir:
redis_minotour: