Skip to content

Components

The React application provides workspace navigation, document management, research conversations, source previews, working documents, profiles, and administration surfaces. It is served by nginx on port 8080 and, at runtime, reads BACKEND_BASE_URL (the public origin) and DOCS_URL.

The ASP.NET Core application owns authentication, authorization, workspace and organization rules, document and indexing orchestration, research conversations, citations, exports, provider selection, and the API under /api on port 5010.

It is the security boundary between users and tenant-owned database or object-storage data.

PostgreSQL stores application records and vector embeddings. The service is private and should not be exposed publicly. The regular backend process refuses to start with pending Entity Framework migrations; migrations must be applied deliberately before serving traffic.

The backups service writes a daily PostgreSQL dump to volume/postgres/backups and keeps 7 daily, 4 weekly, and 6 monthly copies. It does not cover object storage or the data-protection keys: include them in the recovery plan, keep an independent copy off the host, and test restoration.

Garage provides local S3-compatible storage. It can be replaced with AWS S3 or another compatible service by changing the S3 settings and credentials. Uploaded sources and extraction artifacts live here, so retention and recovery policies must cover this store as well as PostgreSQL.

Caddy terminates HTTPS for the InsightSpace hostname, with automatic certificates, and serves one site: /api/* goes to the backend on port 5010, everything else to the frontend on port 8080. It can be replaced by an existing proxy or ingress that does the same on one hostname and sets X-Forwarded-For and X-Forwarded-Proto.

Ollama can provide local chat, embedding, and reranking models when configured. It is not part of the Compose stack: it runs on the host or, in a split installation, on the inference device, reachable from the application server over the agreed private network. Model selection and endpoint compatibility are release-specific.

The standalone Python service uses Docling to convert supported files into structured chunks. It can run standard or vision pipelines, OCR scanned content, detect tables, and optionally enrich formulas, code, and pictures.

Each job runs in a disposable subprocess and temporary scratch directory. The production posture uses a read-only root filesystem, dropped Linux capabilities, no-new-privileges, and tmpfs mounts.

Browser
→ Reverse proxy (one hostname)
→ Frontend (all other paths)
→ Backend (/api/*)
├─ PostgreSQL + pgvector
├─ S3-compatible object storage
├─ Extractor
├─ Chat provider
├─ Embedding provider
├─ Reranking provider
├─ SMTP server
└─ License server

Optional components are connected by configured URLs. The backend does not depend on a specific local Compose service name when an external implementation is supplied.