Installation Methods
Replane can be deployed using Docker (recommended) or from source.
Docker (Recommended)
The simplest way to run Replane is using the official Docker image.
Prerequisites
- Docker 20.10+
- Docker Compose v2.0+ (optional but recommended)
- PostgreSQL 14+ (can run in Docker)
Quick Start
See the Quickstart Guide for a step-by-step walkthrough.
Using docker run
# Start PostgreSQL
docker run -d \
--name replane-db \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=replane \
-v replane-db:/var/lib/postgresql/data \
postgres:17
# Start Replane
docker run -d \
--name replane \
--link replane-db:db \
-e DATABASE_URL=postgresql://postgres:postgres@db:5432/replane \
-e BASE_URL=http://localhost:3000 \
-e SECRET_KEY_BASE=your-secret-key-here \
-e GITHUB_CLIENT_ID=your-github-client-id \
-e GITHUB_CLIENT_SECRET=your-github-client-secret \
-p 3000:3000 \
ghcr.io/replane-dev/replane:latest
From Source
For development or customization, you can run Replane from source.
Prerequisites
- Node.js 22+
- pnpm 9+
- PostgreSQL 14+
Steps
- Clone the repository:
git clone https://github.com/replane-dev/replane.git
cd replane
- Install dependencies:
pnpm install
- Set up environment variables:
Copy .env.example to .env:
cp .env.example .env
Edit .env with your settings:
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/replane
BASE_URL=http://localhost:3000
SECRET_KEY_BASE=generate-a-random-string-here
# GitHub OAuth
GITHUB_CLIENT_ID=your-client-id
GITHUB_CLIENT_SECRET=your-client-secret
- Run database migrations:
pnpm db:migrate
- Start the development server:
pnpm dev
Replane will be available at http://localhost:3000.
Build for Production
pnpm build
pnpm start
Environment Variables
See Environment Variables for a complete reference.
Next Steps
- Quickstart Guide - Get started with Docker
- Self-Hosting - Production deployment
- Configuration - Environment variables reference