-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 815 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
version: "3.9"
services:
api:
build:
context: .
dockerfile: Dockerfile
image: deepseek-ocr-cu130:latest
container_name: deepseek-ocr-cu130
env_file:
- .env
environment:
# You can override any key from .env here if needed
HF_HOME: "/data/hf_cache"
volumes:
- ./results:/app/results
- ./uploads:/app/uploads
- hf_cache:/data/hf_cache
- ./.env:/app/.env:ro # optional: also mount inside container
ports:
- "${PORT:-8000}:8000" # host uses PORT from .env
gpus: all
shm_size: "2g"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8000/health || exit 1"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
volumes:
hf_cache: