DocsSelf Hosting
Back to docs

Self-Hosting with Docker

Deploy the complete OpenPay platform on your own infrastructure using Docker Compose. One command starts all services.

What You'll Get

Hyperswitch

Payment orchestration engine

Kill Bill

Subscription billing & invoicing

Tazama

Real-time fraud detection

NATS JetStream

Event streaming bus

PostgreSQL

Primary database

Redis

Cache & session store

Traefik

Reverse proxy & TLS

Merchant Dashboard

Next.js admin panel

Quick Start

setup
# Clone the repo
git clone https://github.com/OpenPay-App/openpay.git
cd OpenPay

# Copy environment files
cp .env.example .env
cp event-bus/.env.example event-bus/.env
cp payment-system/hyperswitch/.env.example payment-system/hyperswitch/.env
cp payment-system/killbill/.env.example payment-system/killbill/.env

# Edit .env with your keys (Paystack, Kinde, etc.)
nano .env

# Start everything
make up

# Initialize NATS streams
./event-bus/nats/scripts/init-streams.sh

# Watch logs
make logs

Default Ports

ServicePortPurpose
Merchant Dashboard3000Next.js UI
Traefik8080Reverse proxy dashboard
Hyperswitch API8081Payment processing API
Kill Bill8082Subscription billing API
NATS Monitoring8222JetStream monitoring
PostgreSQL5432Database (internal only)
Redis6379Cache (internal only)
NATS4222Event bus (internal only)

System Requirements

4GB

Minimum RAM

20GB

Disk space

2+

CPU cores

Upgrades & Rollbacks

Safe version bumps with backup + rollback

Environment Variables

Complete reference for all config options

Production Deploy

Hardening guide for live environments