Docs

Configuration

The settings most installs change, with their defaults from the example .env file.

Where settings live

Copy deploy/.env.example to deploy/.env and edit it. Then run docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -d. With make run-local, settings are in deploy/.env.run-local. Ports are on Host ports.

Paths and secrets

Paths are on the host. Use absolute paths.

Variable What it does Default
DRIVE_DOCUMENTS_LOCATION Your original documents. /mnt/tank/driver/documents
DRIVE_APP_DATA_LOCATION Generated data. /mnt/tank/driver/app-data
DRIVE_DB_DATA_LOCATION Postgres data. /mnt/ssd/driver/postgres-data
DRIVE_TRANSLATION_DATA_LOCATION Translation model data. /mnt/tank/driver/translation-cache
DRIVE_EMBEDDING_DATA_LOCATION Embedding model cache. /mnt/tank/driver/embedding-cache
POSTGRES_PASSWORD Database password. Make it long and random. change-me
DRIVE_WORKER_TOKEN Secret the worker uses to call the API. At least 32 random characters. change-this-worker-token

Languages

Variable What it does Default
DRIVE_MAIN_LANGUAGE Language documents are translated to. en
DRIVE_OCR_LANGUAGES Tesseract languages. The worker image ships English and Dutch. nld,eng
DRIVE_LANGUAGES Languages the worker tells apart. At least two. nl,en
DRIVE_TRANSLATION_LANGUAGES Languages LibreTranslate loads. en,nl

On by default. The first start downloads about 2 GB.

Variable What it does Default
COMPOSE_PROFILES embeddings starts the embedding sidecar. embeddings
DRIVE_EMBEDDING_MODE local, external or disabled. local
DRIVE_EMBEDDING_MODEL Embedding model. BAAI/bge-m3

To turn it off, remove embeddings from COMPOSE_PROFILES and set DRIVE_EMBEDDING_MODE=disabled.

Telemetry

Off unless both values are set. See Telemetry.

Variable What it does Default
DRIVE_OTEL_ENDPOINT Address of an OTLP/HTTP collector. not set
DRIVE_OTEL_TOKEN Bearer token for the collector. not set

The full list, including time zone, HTTPS, NAS and translation provider settings, is in deploy/.env.example.