Skip to main content

Self-Hosting

Run Raven Docs on your own infrastructure for full control over your data.

Deployment Options

OptionBest For
DockerQuick setup, small teams
KubernetesProduction, scaling

Requirements

Minimum

  • 2 CPU cores
  • 4 GB RAM
  • 20 GB storage
  • PostgreSQL 15+
  • Redis 7+
  • 4+ CPU cores
  • 8+ GB RAM
  • 100 GB SSD storage
  • PostgreSQL with replication
  • Redis cluster
  • Load balancer

Architecture

Quick Start

Docker Compose

# Clone the repo
git clone https://github.com/HaruHunab1320/raven-docs.git
cd raven-docs

# Configure environment
cp .env.example .env
# Edit .env with your settings

# Start services
docker compose up -d

Kubernetes

See the Kubernetes guide for deploying with Helm charts included in the repository.

Environment Variables

VariableRequiredDescription
DATABASE_URLYesPostgreSQL connection string
REDIS_URLYesRedis connection string
APP_SECRETYesSecret for encryption
APP_URLYesPublic URL of your instance

See Configuration for all options.

Upgrading

  1. Check the Changelog for breaking changes
  2. Back up your database
  3. Pull the latest changes
  4. Run migrations
  5. Restart services
# Docker
git pull
docker compose pull
docker compose up -d

Support

For community support: