-
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 (37 loc) · 1.08 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
40 lines (37 loc) · 1.08 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
40
version: '3.8'
services:
# Backend API Server (Development Mode)
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: navtex-backend-dev
ports:
- "8000:8000"
environment:
- MODEL_PATH=weights/best_model.pt
- DEBUG=true
volumes:
- ./backend/app:/app/app:rw # 소스 코드 실시간 반영
- ./backend/weights:/app/weights:ro
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
restart: unless-stopped
# Frontend Web Server (Development Mode)
frontend:
build:
context: ./frontend
target: builder # 빌드 단계만 사용
container_name: navtex-frontend-dev
ports:
- "5173:5173"
volumes:
- ./frontend/src:/app/src:rw # 소스 코드 실시간 반영
- ./frontend/index.html:/app/index.html:rw
- ./frontend/vite.config.ts:/app/vite.config.ts:rw
command: npm run dev -- --host 0.0.0.0
depends_on:
- backend
restart: unless-stopped
networks:
default:
name: navtex-network-dev