Docs / Production deployment

Self-hosting

Production deployment

The self-hosted setup gets you running locally. This page covers the differences for a real deployment — the production stack, durable data, agent execution, and networking.

i The repo's docker-compose.prod.yml is the source of truth. Treat the commands here as orientation and adapt to your platform (a managed Postgres + object store is recommended over in-cluster containers).

The production stack

The prod compose file builds on the dev services and adds an application container plus the agent base image:

docker compose -f docker-compose.prod.yml up -d --build

To run agent sessions on the host's Docker, the app container mounts the Docker socket (/var/run/docker.sock). Restrict access to it.

Essentials to set

Migrations run automatically on app start; you can also run pnpm db:migrate out of band.

Agent execution at scale

By default sessions are local Docker containers on the app host. For throughput, run dedicated agent servers and point the app at them:

Networking, webhooks & security

Pre-flight checklist

Full variable list: configuration reference.