-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 817 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 817 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
41
version: '3.8'
services:
backend:
build:
context: ./backend
ports:
- "8000:8000"
volumes:
- ./backend/app:/app/app
- model_weights:/app/weights
- session_data:/app/temp/handwrite_sessions
environment:
- PYTHONPATH=/app
- MODEL_WEIGHTS_DIR=/app/weights
- TF_USE_LEGACY_KERAS=1
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
environment:
- VITE_API_URL=http://localhost:8000
depends_on:
- backend
restart: unless-stopped
volumes:
model_weights:
session_data: