forked from arayabrain/barebone-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
79 lines (71 loc) · 1.96 KB
/
docker-compose.dev.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
version: "3"
# Note:
# - Before running docker compose (dev) for the first time, prepare the following directory for studio-dev-be.
# ```
# cd {APP_SRC_DIR}
# mkdir .snakemake ../experiments_datasets ../experiments_public
# chmod 777 ./ logs/ logs/* .snakemake/ ../experiments_datasets/ ../experiments_public/
# ```
services:
db:
image: mariadb:10.11
ports:
- "127.0.0.1:23306:3306"
env_file:
- studio/config/.env
volumes:
- db_data:/var/lib/mysql
environment:
TZ: Asia/Tokyo
studio-dev-be:
build:
context: .
dockerfile: studio/config/docker/Dockerfile.dev
working_dir: /app
volumes:
- .:/app
# 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/:/data/experiments_datasets
- ../experiments_public/:/data/experiments_public
ports:
- "127.0.0.1:8000:8000"
command: >
bash -c "
alembic upgrade head &&
python main.py --reload --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
studio-dev-fe:
image: node:20.8.0-alpine3.18
working_dir: /app/frontend
volumes:
- ./frontend/:/app/frontend/:cached
ports:
- "127.0.0.1:3000:3000"
command: ash -c 'yarn install && yarn start'
environment:
TZ: Asia/Tokyo
phpmyadmin-dev:
image: phpmyadmin
volumes:
- ./docker/php-phpmyadmin.ini:/usr/local/etc/php/conf.d/php-phpmyadmin.ini
env_file:
- studio/config/.env
ports:
- "127.0.0.1:20080:80"
environment:
TZ: Asia/Tokyo
volumes:
db_data: