chore(#254): wire WITH_REASONING + HF cache volume in compose
- Forward WITH_REASONING from the host environment to the document-parser build args so `WITH_REASONING=true docker compose up --build` produces the reasoning-enabled local image without editing the compose file. - Mount a named hf_cache volume at /home/appuser/.cache/huggingface so Docling / HF model checkpoints survive container restarts and the first conversion does not re-download every cold start.
This commit is contained in:
parent
f051d7bb5b
commit
132a3d9c24
2 changed files with 18 additions and 0 deletions
|
|
@ -82,12 +82,20 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./document-parser
|
context: ./document-parser
|
||||||
target: ${CONVERSION_MODE:-local}
|
target: ${CONVERSION_MODE:-local}
|
||||||
|
args:
|
||||||
|
# Opt in to the R&D reasoning-trace deps (docling-agent + mellea).
|
||||||
|
# Off by default — keeps the standard `local` image lean. See
|
||||||
|
# docs/design/254-optim-taille-image-latest-local.md.
|
||||||
|
WITH_REASONING: ${WITH_REASONING:-false}
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./document-parser:/app
|
- ./document-parser:/app
|
||||||
- uploads_data:/app/uploads
|
- uploads_data:/app/uploads
|
||||||
- db_data:/app/data
|
- db_data:/app/data
|
||||||
|
# Persists Docling / HF model checkpoints across container restarts so
|
||||||
|
# the first conversion does not re-download every cold start.
|
||||||
|
- hf_cache:/home/appuser/.cache/huggingface
|
||||||
environment:
|
environment:
|
||||||
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
|
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
|
||||||
DOCLING_SERVE_URL: ${DOCLING_SERVE_URL:-}
|
DOCLING_SERVE_URL: ${DOCLING_SERVE_URL:-}
|
||||||
|
|
@ -135,3 +143,4 @@ volumes:
|
||||||
uploads_data:
|
uploads_data:
|
||||||
db_data:
|
db_data:
|
||||||
frontend_node_modules:
|
frontend_node_modules:
|
||||||
|
hf_cache:
|
||||||
|
|
|
||||||
|
|
@ -89,11 +89,19 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./document-parser
|
context: ./document-parser
|
||||||
target: ${CONVERSION_MODE:-local}
|
target: ${CONVERSION_MODE:-local}
|
||||||
|
args:
|
||||||
|
# Opt in to the R&D reasoning-trace deps (docling-agent + mellea).
|
||||||
|
# Off by default — keeps the standard `local` image lean. See
|
||||||
|
# docs/design/254-optim-taille-image-latest-local.md.
|
||||||
|
WITH_REASONING: ${WITH_REASONING:-false}
|
||||||
expose:
|
expose:
|
||||||
- "8000"
|
- "8000"
|
||||||
volumes:
|
volumes:
|
||||||
- uploads_data:/app/uploads
|
- uploads_data:/app/uploads
|
||||||
- db_data:/app/data
|
- db_data:/app/data
|
||||||
|
# Persists Docling / HF model checkpoints across container restarts so
|
||||||
|
# the first conversion does not re-download every cold start.
|
||||||
|
- hf_cache:/home/appuser/.cache/huggingface
|
||||||
environment:
|
environment:
|
||||||
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
|
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
|
||||||
DOCLING_SERVE_URL: ${DOCLING_SERVE_URL:-}
|
DOCLING_SERVE_URL: ${DOCLING_SERVE_URL:-}
|
||||||
|
|
@ -128,3 +136,4 @@ volumes:
|
||||||
neo4j_logs:
|
neo4j_logs:
|
||||||
uploads_data:
|
uploads_data:
|
||||||
db_data:
|
db_data:
|
||||||
|
hf_cache:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue