Skip to content

Server Mode

Server mode provides the full-featured deployment with PostgreSQL, Redis, MinIO, and a dedicated document processor.

Prerequisites

  • Docker and Docker Compose
  • Flutter 3.24+ (for building the web client)

Quick Start

bash
cp .env.example .env
cd apps/client && flutter pub get && flutter build web --dart-define=API_BASE_URL=/api && cd ../..
cd infra && docker compose up --build

Services

ServicePortDescription
Web App (Caddy)80Flutter web client
Backend (Axum)8080Rust API server
Doc Processor8081Python document parsing
PostgreSQL5432Database with pgvector
Redis6379Caching
MinIO9000/9001Object storage

Environment Variables

See .env.example for the full list. Key variables:

VariablePurpose
TRUSTRAG__DATABASE_URLPostgreSQL connection
TRUSTRAG__REDIS_URLRedis connection
TRUSTRAG__MINIO_ENDPOINTS3-compatible endpoint
TRUSTRAG__JWT_SECRETJWT signing secret
TRUSTRAG__DOC_PROCESSOR_URLDocument processor URL

Released under the Apache 2.0 License.