Both root and backend Dockerfiles now use a shared base stage with two targets: remote (lightweight, ~300MB) and local (full Docling, ~2-3GB). docker-compose uses CONVERSION_MODE to select the target.
30 lines
637 B
YAML
30 lines
637 B
YAML
services:
|
|
document-parser:
|
|
build:
|
|
context: ./document-parser
|
|
target: ${CONVERSION_MODE:-local}
|
|
expose:
|
|
- "8000"
|
|
volumes:
|
|
- uploads_data:/app/uploads
|
|
- db_data:/app/data
|
|
environment:
|
|
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
|
|
DOCLING_SERVE_URL: ${DOCLING_SERVE_URL:-}
|
|
DOCLING_SERVE_API_KEY: ${DOCLING_SERVE_API_KEY:-}
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 4g
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
ports:
|
|
- "3000:80"
|
|
depends_on:
|
|
- document-parser
|
|
|
|
volumes:
|
|
uploads_data:
|
|
db_data:
|