← Back to Self-Hosting

Self-Hosting with Docker

Deploy Chart-Output using Docker and Docker Compose.

Prerequisites

  • Docker and Docker Compose
  • (Optional) External Postgres and Redis if not using the included services

Quick Start

  1. Clone the repository and copy environment variables
cp .env.example .env
# Edit .env with your Supabase URL, service role key, Stripe keys, etc.
  1. Build and run
docker-compose up -d

The API is available at http://localhost:3000.

Environment Variables

VariableDescription
NEXT_PUBLIC_SUPABASE_URLSupabase project URL
SUPABASE_SERVICE_ROLE_KEYSupabase service role key
REDIS_URLRedis connection URL (default: redis://redis:6379)
STRIPE_SECRET_KEYStripe secret key (optional)
S3_BUCKET, S3_REGIONS3/R2 for persistent chart URLs (optional)

VM Requirements

  • Minimum: 2 CPU, 4GB RAM
  • Recommended for production: 4 CPU, 8GB RAM (chart rendering is CPU-intensive)