Deployment
Deploy to any VPS with Docker.
Docker Compose
The included docker-compose.yml sets up:
- Your Next.js app
- PostgreSQL database
- Health checks
docker compose up -d
Production Setup
- Clone your repo on the VPS
- Copy
.env.exampleto.envand fill in values - Run
docker compose -f docker-compose.yml up -d - Set up Nginx reverse proxy with SSL (Let's Encrypt)
Environment Variables
See .env.example for the full list. Key variables:
| Variable | Purpose |
|---|---|
| DATABASE_URL | PostgreSQL connection string |
| BETTER_AUTH_SECRET | Auth encryption key |
| STORAGE_ENDPOINT | S3-compatible endpoint |
| RESEND_API_KEY | Email provider API key |
| STRIPE_SECRET_KEY | Stripe API key |