Quickstart

Get the Document Conversion Service running locally and process your first document.

Overview

The local stack runs entirely in Docker: PostgreSQL for data, Redis for queues and rate limiting, MinIO for object storage, and the FastAPI service. The portal and this documentation site are optional frontends.

1. Start the stack

From the repository root:

cd infrastructure/docker
docker compose up -d

This starts postgres, redis, minio and api. Check it:

curl http://localhost:8000/health
curl http://localhost:8000/health/ready

2. Seed a dev API key

OIDC is disabled in local mode, so seed a user and API key directly:

Get-Content ..\..\scripts\seed-dev.py | docker compose exec -T api python

Copy the printed API_KEY=dcs_dev_... value.

3. Upload a document

$env:DCS_API_KEY = "dcs_dev_..."
curl -X POST http://localhost:8000/api/v1/documents/async `
  -H "X-API-Key: $env:DCS_API_KEY" `
  -F "file=@invoice.pdf" `
  -F "priority=high"

Processing requires a Celery worker. Start one with docker compose --profile workers up -d (the invoice worker needs a machine with more RAM than a 4 GB Docker VM).

4. Open the portal

Start the frontends and browse to http://localhost:3000/portal/:

docker compose --profile frontends up -d

Paste the API key, upload a file, and watch its status update.