-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
39 lines (38 loc) · 1.01 KB
/
docker-compose.dev.yml
File metadata and controls
39 lines (38 loc) · 1.01 KB
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
services:
backend:
build:
context: .
dockerfile: Dockerfile.development
target: backend-dev
args:
- INCLUDE_DEV=true
env_file:
- .env
environment:
- WATCHFILES_FORCE_POLLING=true
command: sh -c "poetry run python label_studio/manage.py migrate && poetry run python label_studio/manage.py runserver 0.0.0.0:8080"
volumes:
- ./label_studio:/label-studio/label_studio
- ./deploy:/label-studio/deploy
ports:
- "8080:8080"
frontend:
build:
context: .
dockerfile: Dockerfile.development
target: frontend-dev
args:
- INCLUDE_DEV=true
environment:
- CHOKIDAR_USEPOLLING=1
- WATCHPACK_POLLING=true
- NX_DAEMON=false
- FRONTEND_HMR=true
- FRONTEND_HOSTNAME=http://localhost:3000
- DJANGO_HOSTNAME=http://backend:8080
command: yarn dev --host 0.0.0.0 --port 3000
volumes:
- ./web:/label-studio/web
- /label-studio/web/node_modules
ports:
- "3000:3000"