Files
rw-deepseek-ocr/.env.example

46 lines
1.3 KiB
Plaintext

# DeepSeek OCR Application Configuration
# API Configuration
API_HOST=0.0.0.0
API_PORT=8000
# Frontend Configuration
FRONTEND_PORT=3000
# Model Configuration
MODEL_NAME=deepseek-ai/DeepSeek-OCR
HF_HOME=/models
# OCR model selection
# Register the local DeepSeek-OCR model (set to false for an Ollama-only deployment)
ENABLE_DEEPSEEK_LOCAL=true
# External Ollama host the backend should call (no trailing slash)
OLLAMA_BASE_URL=http://host.docker.internal:11434
# Comma-separated Ollama vision model tags to surface in the UI.
# Pull these on the Ollama host first, e.g. `ollama pull glm-ocr`.
OLLAMA_MODELS=glm-ocr,llama3.2-vision,minicpm-v,qwen2.5vl
# Default model id selected in the UI (deepseek-local or ollama:<tag>)
DEFAULT_OCR_MODEL=deepseek-local
# Per-request timeout (seconds) for Ollama calls
OLLAMA_TIMEOUT=300
# CORS Configuration (comma-separated origins, defaults to http://localhost:3000)
CORS_ORIGINS=http://localhost:3000
# Upload Configuration
MAX_UPLOAD_SIZE_MB=100
# PostgreSQL Configuration
POSTGRES_USER=ocr_user
POSTGRES_PASSWORD=ocr_password
POSTGRES_DB=ocr_db
DATABASE_URL=postgresql://ocr_user:ocr_password@postgres:5432/ocr_db
# OCR Image Storage (host path mounted into container)
OCR_IMAGES_DIR=/data/ocr_images
# Processing Configuration
BASE_SIZE=1024
IMAGE_SIZE=640
CROP_MODE=true