Skip to content

Deployment

TL;DR

  • One image (or uvx exactdocs) serves the web UI, the REST API and MCP from one process.
  • A small instance needs nothing else: SQLite in the data volume.
  • Pick the image variant by the models you want: none, over the network, or local.
  • A team can move to PostgreSQL and run several processes.

ExactDocs ships as one Docker image (and as uvx exactdocs) that serves the web UI, the REST API and MCP from a single process. A small instance needs nothing else: the database is a SQLite file in the data volume. A team can move the database to PostgreSQL and run several processes on it.

Which page do I need

Stage Page What it covers
Quick start Quick start One hardened container, or uvx
Production Behind a reverse proxy Allowed hosts, trusted proxies, Cloudflare Access
Production Behind a corporate proxy Forward proxies, company CAs, git over SSH
Production PostgreSQL Several processes on one database
Production Supabase PostgreSQL on a Supabase project
Operations Health checks Liveness and readiness probes
Operations Backup and restore Archives of a SQLite instance
Operations Upgrading New versions, reindexing, index backends
Operations Observability What leaves the server, OTLP, Prometheus

Every setting named in this section is listed under Configuration.

Image variants

All three variants are built from one Dockerfile, and all three start as a BM25 server until a model role is configured.

Tag Holds For
:<version>, :latest BM25 on SQLite or PostgreSQL; no model, no ML library most installs
:<version>-ai, :latest-ai exactdocs[ai]: the hosted and self-hosted model providers, sqlite-vec, pgvector AI providers over the network
:<version>-local, :latest-local exactdocs[ai,local] and the two default local models, read-only in /opt/exactdocs/models
(their licenses, MIT and Apache-2.0, are in its NOTICE)
air-gapped instances: hybrid search and reranking with no network

The uvx equivalents are uvx --from 'exactdocs[ai]' exactdocs serve and uvx --from 'exactdocs[ai,local]' exactdocs serve (followed by exactdocs models pull). Dev builds carry the same suffixes (:dev-ai, :0.4.0.dev1-local).