-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.gpu.yml
More file actions
56 lines (53 loc) · 1.46 KB
/
docker-compose.gpu.yml
File metadata and controls
56 lines (53 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.gpu
container_name: pmoves-dox-backend-gpu
environment:
- FRONTEND_ORIGIN=http://localhost:3737
- PORT=8484
- HUGGINGFACE_HUB_TOKEN=${HF_API_KEY:-${HUGGINGFACE_HUB_TOKEN:-}}
- DOCLING_VLM_REPO=${DOCLING_VLM_REPO:-}
- AUTO_MIGRATE=${AUTO_MIGRATE:-false}
- HRM_ENABLED=${HRM_ENABLED:-false}
- HRM_MMAX=${HRM_MMAX:-6}
- HRM_MMIN=${HRM_MMIN:-2}
- XML_XPATH_MAP=${XML_XPATH_MAP:-}
- XML_XPATH_MAP_FILE=${XML_XPATH_MAP_FILE:-}
- OPEN_PDF_ENABLED=${OPEN_PDF_ENABLED:-false}
ports:
- "8484:8484"
volumes:
- ./backend/uploads:/app/uploads
- ./backend/artifacts:/app/artifacts
- ./samples:/app/samples
- hf-cache:/root/.cache/huggingface
# Request GPU via deploy reservations (Docker Desktop supports this)
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: pmoves-dox-frontend
environment:
- NEXT_PUBLIC_API_BASE=http://localhost:8484
- PORT=3737
- NEXT_PUBLIC_POLL_INTERVAL_MS=3000
ports:
- "3737:3737"
depends_on:
- backend
restart: unless-stopped
networks:
default:
name: pmoves-dox-net
volumes:
hf-cache: