-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cpu.yml
More file actions
55 lines (52 loc) · 1.54 KB
/
docker-compose.cpu.yml
File metadata and controls
55 lines (52 loc) · 1.54 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: pmoves-dox-backend-cpu
environment:
- FRONTEND_ORIGIN=http://localhost:3737,http://localhost:3000
- 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"
- "8000:8484" # Map port 8000 to 8484 for CI smoke test compatibility
volumes:
- ./backend/uploads:/app/uploads
- ./backend/artifacts:/app/artifacts
- ./samples:/app/samples
- hf-cache:/root/.cache/huggingface
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:8484/"]
interval: 15s
timeout: 5s
retries: 5
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"
- "3000:3737" # Map port 3000 to 3737 for CI UI smoke test compatibility
depends_on:
- backend
restart: unless-stopped
networks:
default:
name: pmoves-dox-net
volumes:
hf-cache: