Skip to content

Deployment Overview

Sibyl can be deployed in multiple configurations, from local development to production Kubernetes clusters.

Architecture

Sibyl consists of four main components:

ComponentPurposePort
BackendFastAPI + MCP server (sibyld serve)3334
Workerarq job queue processor-
FrontendNext.js 16 web UI3337
FalkorDBGraph database (Redis + FalkorDB)6379*
PostgresRelational data (users, crawl docs)5432*

*Default internal ports. External mappings vary by deployment mode.

                                   +------------------+
                                   |    Frontend      |
                                   |   (Next.js 16)   |
                                   |     :3337        |
                                   +--------+---------+
                                            |
+------------------+               +--------+---------+
|    MCP Client    |               |      Kong /      |
| (Claude, etc.)   +-------------->+     Ingress      |
+------------------+     /mcp      +--------+---------+
                                            |
                         /api/*    +--------+---------+
                         +-------->+     Backend      |
                                   | (FastAPI + MCP)  |
                                   |     :3334        |
                                   +----+-------+-----+
                                        |       |
                          +-------------+       +-------------+
                          |                                   |
              +-----------+----------+          +-------------+---------+
              |     PostgreSQL       |          |       FalkorDB        |
              |   (users, docs)      |          |    (knowledge graph)  |
              |       :5432          |          |         :6379         |
              +----------------------+          +-----------------------+
                          ^
                          |
              +-----------+----------+
              |       Worker         |
              |   (arq processor)    |
              +----------------------+

Deployment Modes

1. Local Development (Docker Compose)

Best for: Quick local development and testing.

  • Single command startup
  • Hot reload for backend/frontend
  • Databases run in Docker containers
  • Docker Compose Guide

2. Local Kubernetes (Tilt + Minikube)

Best for: Testing Kubernetes manifests locally, developing with full K8s stack.

  • Full Kubernetes environment locally
  • Kong Gateway for routing
  • CNPG for managed PostgreSQL
  • Automatic image builds on code changes
  • Tilt/Minikube Guide

3. Production Kubernetes

Best for: Production deployments with HA and scaling.

Quick Comparison

FeatureDocker ComposeTilt/MinikubeProduction K8s
Setup time1 minute5-10 minutesVaries
Hot reloadYesYesNo
Kong GatewayNoYesYes
TLSNoYes (Caddy)Yes
AutoscalingNoNoYes (HPA)
Multi-replicaNoYesYes
Resource requirementsLowMediumHigh
Production-likeNoMostlyYes

Port Mappings by Environment

Docker Compose (Local Dev)

ServiceHost PortContainer PortNotes
Backend33343334API + MCP
Frontend33373337Next.js UI
FalkorDB63806379Avoids Redis conflicts
FalkorDB33353000Browser UI
Postgres54335432Avoids local Postgres

Tilt/Minikube

All services accessed via https://sibyl.local:

PathServiceNotes
/api/*BackendREST API
/mcpBackendMCP protocol
/FrontendNext.js UI

Next Steps

Released under the MIT License.