← 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
- Clone the repository and copy environment variables
cp .env.example .env # Edit .env with your Supabase URL, service role key, Stripe keys, etc.
- Build and run
docker-compose up -d
The API is available at http://localhost:3000.
Environment Variables
| Variable | Description |
|---|---|
| NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
| SUPABASE_SERVICE_ROLE_KEY | Supabase service role key |
| REDIS_URL | Redis connection URL (default: redis://redis:6379) |
| STRIPE_SECRET_KEY | Stripe secret key (optional) |
| S3_BUCKET, S3_REGION | S3/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)