Deployment

Deployment

Choose a self-hosted ctx| deployment path.

Self-hosted ctx| can start from the reference Docker stack, move into managed infrastructure through Terraform, or run on AWS with the dedicated CtxPipe CDK construct. The deployment target changes, but the core requirements stay the same: one public backend origin, persistent Postgres, a graph database, worker capacity, codesearch storage, model provider credentials, and connector secrets.

Start with the shape, then choose the platform

The product expects backend, UI, worker, codesearch, Postgres, and a graph database. Pick the deployment path that gives your team the right amount of operational control.

Choosing a path

PathUse whenMain responsibility
DockerYou want the fastest self-hosted evaluation or a small internal deploymentRun the Compose stack and persist its volumes
TerraformYou want infrastructure managed as codeManage Railway, Neon, secrets, and image tags through Terraform
AWSYou need to run inside an AWS accountDeploy and operate the CtxPipe construct and provide domain/model credentials

Shared requirements

  • A public HTTPS AUTH_BASE_URL for browser, auth, API, connector callbacks, and MCP traffic.
  • Postgres 17 for relational state.
  • A supported graph database for knowledge graph data.
  • Durable storage for codesearch indexes and repository clone cache.
  • Model provider credentials for chat, ingestion, and embeddings.
  • GitHub App credentials if users will connect repositories.
  • Atlassian OAuth and Forge configuration if users will connect Confluence.