Skip to content

Self-host

Run Tevrin on your own infrastructure

Run Tevrin yourself on Railway, Docker Desktop Kubernetes or the local dev loop. Free while in preview.

PreviewFree while in preview. No billing.

Requirements

  • Docker
  • PostgreSQL 18
  • An LLM provider key, or Ollama (not on Railway)

Install

Three ways to run it

Railway

A public web service, a private API service with a data volume, and Railway Postgres, in preview and production environments defined as code and deployed by GitHub Actions.

Railway
railway config plan# read-only diff of Railway vs .railway/railway.tsbash deploy/scripts/smoke-remote.sh <web-url># smoke test a deployed environment
Railway docs (opens in a new tab)

Docker Desktop Kubernetes

Kustomize manifests for the Docker Desktop Kubernetes cluster. One script builds the images, migrates the database, rolls out and smoke-tests at http://localhost:8080.

Docker Desktop Kubernetes
./deploy/scripts/deploy-local.sh# build images, apply, migrate, roll out, smoke test → http://localhost:8080./deploy/scripts/teardown-local.sh# remove app (keeps DB data unless --wipe-data)
Docker Desktop Kubernetes docs (opens in a new tab)

Dev loop

PostgreSQL in Docker Compose, the API with dotnet run and the web app with npm, for working on Tevrin itself.

Dev loop
docker compose up -d db# dev database (PostgreSQL 18, values from .env)dotnet run --project backend/src/Tevrin.Api# http://localhost:5080npm --prefix frontend run dev# http://localhost:3000 (proxies /api + WebSockets → BACKEND_URL, default 5080)
Dev loop docs (opens in a new tab)

Configure

What you set up

FAQ

Upgrades and data