# DocAI Fabric — Self-Hosted Standalone (Single Node) settings file # Companion file for the guide: https://app.docaifabric.com/docs/deployment/self-hosted-standalone # Save this file as .env next to your docker-compose.yml, then fill in the values. # Application image. :latest is the most recent release and is simplest for a # demo. For a long-lived or production install, pin the exact version tag we # give you at onboarding (e.g. ...:2026.06.25-2) so you can roll back to a known # version. Check what you are running any time with GET /api/version. DOCAI_IMAGE=ghcr.io/docaifabric/docaifabric:latest # Admin key for management operations. Generate a random value: # openssl rand -hex 32 ADMIN_API_KEY= # Encrypts the language model API keys you enter in the app. # Generate ONCE and never change it (see warning below): # openssl rand -base64 32 TENANT_MODELS_ENCRYPTION_KEY= # The URL users will use to reach the app. For a laptop demo, leave the default. APP_URL=http://localhost:8080 # OCR engines (run locally, no cloud). Keep at least one enabled. RAPID_OCR_ENABLED=true TESSERACT_OCR_ENABLED=true # Optional: Microsoft Read (Azure Document Intelligence). Calls Azure, so the # container needs outbound HTTPS to the endpoint below. Leave disabled to stay # fully local. To use it, set all three: # MICROSOFT_OCR_ENABLED=true # MICROSOFT_OCR_ENDPOINT=https://.cognitiveservices.azure.com/ # MICROSOFT_OCR_KEY= # Default engine for new projects (must be one you enabled above). DEFAULT_OCR_ENGINE=rapid_ocr # Default LLM — any OpenAI-compatible endpoint (Ollama, vLLM, a cloud key, ...). # IMPORTANT: this URL must be reachable from INSIDE the container. A bare name # like http://ollama:11434 only works if "ollama" is a service in THIS Compose # file (it is not, by default). See "Default LLM" below for the right address. # Example below: Ollama running on the same machine, reached via host.docker.internal. LLM_BASE_URL=http://host.docker.internal:11434 LLM_MODEL=gemma4 LLM_API_KEY= # leave blank for Ollama; set the key for cloud providers # AI Assistant (optional). It uses the Default LLM above unless you set a # different model here. Set ASSISTANT_ENABLED=false to turn the assistant off. # ASSISTANT_MODEL= # ASSISTANT_ENABLED=true # Email notifications (optional). Set SMTP_HOST to enable invitation and # notification emails; leave it unset to keep email off. See "Enable email # notifications" in this guide for examples and details. # SMTP_HOST= # SMTP_PORT=587 # SMTP_USER= # SMTP_PASSWORD= # SMTP_FROM= # SMTP_USE_TLS=true # Socket timeout in seconds (default 15). In locked-down / internal networks # where outbound SMTP is blocked, this bounds the failure instead of hanging. # SMTP_TIMEOUT=15 # Apple Silicon Macs only: # RULE_EXECUTOR_USE_VM=true