forked from arayabrain/barebone-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·104 lines (95 loc) · 2.58 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
version: "3"
services:
db:
image: mariadb:10.11
ports:
- "127.0.0.1:23306:3306"
env_file:
- studio/config.production/.env
volumes:
- db_data:/var/lib/mysql
environment:
TZ: Asia/Tokyo
restart: always
studio:
build:
context: .
dockerfile: studio/config/docker/Dockerfile
working_dir: /app
volumes:
# optinist data outputs directories
- ../optinist-docker-volumes/.snakemake/:/app/.snakemake
- ../optinist-docker-volumes/logs/:/app/logs
- ../optinist-docker-volumes/studio_data/:/app/studio_data
# external datasets directories
- ../experiments_datasets/:/app/experiments_datasets
- ../experiments_public/:/app/experiments_public
ports:
- "127.0.0.1:8000:8000"
command: >
bash -c "
sh init_docker_services.sh &&
alembic upgrade head &&
python main.py --host 0.0.0.0 --port 8000
"
user: optinist
environment:
PYTHONPATH: /app/
TZ: Asia/Tokyo
OPTINIST_DIR: /app/studio_data
POETRY_VIRTUALENVS_CREATE: false
CONDA_CHANNEL_PRIORITY: strict
depends_on:
- db
restart: always
expdb_batch:
build:
context: .
dockerfile: studio/config/docker/Dockerfile
working_dir: /app
volumes:
# optinist data outputs directories
- ../optinist-docker-volumes/.snakemake/:/app/.snakemake
- ../optinist-docker-volumes/logs/:/app/logs
- ../optinist-docker-volumes/studio_data/:/app/studio_data
# external datasets directories
- ../experiments_datasets/:/app/experiments_datasets
- ../experiments_public/:/app/experiments_public
# Note: No ports exposed for batch processing containers.
# ports:
# - "127.0.0.1:8000:8000"
tty: true
stdin_open: true
command: >
bash -c "
sh init_docker_services.sh &&
alembic upgrade head &&
sh cron/deploy_crontab.sh &&
/bin/sh
"
user: optinist
environment:
PYTHONPATH: /app/
TZ: Asia/Tokyo
OPTINIST_DIR: /app/studio_data
POETRY_VIRTUALENVS_CREATE: false
CONDA_CHANNEL_PRIORITY: strict
depends_on:
- db
restart: always
db-cron:
build:
context: studio/
dockerfile: config/docker/Dockerfile.db-cron
env_file:
- studio/config.production/.env
volumes:
- ../optinist-docker-volumes/backups/db/:/root/backups-db
command: ash -c "rsyslogd && crond -f"
environment:
TZ: Asia/Tokyo
depends_on:
- db
restart: always
volumes:
db_data: