feat(infra): production deployment pipeline — Caddy, staging, Gitea Actions (#497) #499
@@ -121,8 +121,10 @@ services:
|
|||||||
- "8000"
|
- "8000"
|
||||||
# Surya OCR loads ~5GB of transformer models at startup; first request
|
# Surya OCR loads ~5GB of transformer models at startup; first request
|
||||||
# triggers a further ~1GB Kraken model download into ocr-cache.
|
# triggers a further ~1GB Kraken model download into ocr-cache.
|
||||||
mem_limit: 12g
|
# CX42+ (16 GB RAM) honours the default. On a CX32 (8 GB) override with
|
||||||
memswap_limit: 12g
|
# OCR_MEM_LIMIT=6g (slower first-request, fits the host).
|
||||||
|
mem_limit: ${OCR_MEM_LIMIT:-12g}
|
||||||
|
memswap_limit: ${OCR_MEM_LIMIT:-12g}
|
||||||
volumes:
|
volumes:
|
||||||
- ocr-models:/app/models
|
- ocr-models:/app/models
|
||||||
- ocr-cache:/root/.cache
|
- ocr-cache:/root/.cache
|
||||||
|
|||||||
Reference in New Issue
Block a user