-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
40 lines (36 loc) · 981 Bytes
/
docker-compose.dev.yml
File metadata and controls
40 lines (36 loc) · 981 Bytes
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
# Dev overrides: volume mounts + hot-reload commands
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
services:
postgres:
volumes:
- pgdata:/var/lib/postgresql/data
inference:
volumes:
- ./apps/inference:/app
- ./images:/data/images
command:
['uvicorn', 'main:app', '--host', '0.0.0.0', '--port', '8000', '--reload']
api:
build:
context: ./apps/api
dockerfile: Dockerfile
target: dev
environment:
ENABLE_LABELING: 'true'
volumes:
- ./apps/api/src:/app/src
command: ['npx', 'nest', 'start', '--watch']
web:
build:
context: ./apps/web
dockerfile: Dockerfile
target: dev
environment:
NEXT_PUBLIC_API_URL: http://localhost:3001
NEXT_PUBLIC_INFERENCE_URL: http://localhost:8000
NEXT_PUBLIC_ENABLE_LABELING: 'true'
volumes:
- ./apps/web/src:/app/src
command: ['npx', 'next', 'dev']
volumes:
pgdata: