Deployment
Deploy Typeflow to production with Docker, Kubernetes, or cloud platforms.
Overview
Typeflow can be deployed in several ways depending on your scale and infrastructure preferences. Use Docker for single-container or compose-based setups, ideal for small-to-medium deployments with full control over the environment. Docker Compose bundles the application with PostgreSQL so you can start a complete stack with one command. For managed hosting, Typeflow also runs on cloud platforms such as Vercel, Railway, and Render, which handle scaling and TLS automatically.
Docker
123456789101112131415161718192021222324252627Environment Variables
DATABASE_URLPostgreSQL connection string
postgresql://user:pass@host:5432/databaseNEXTAUTH_SECRETSecret for signing session tokens (min. 32 chars)
openssl rand -base64 32NEXTAUTH_URLYour public URL
https://typeflow.your-domain.comENCRYPTION_KEYCustom key for credential encryptionREDIS_URLRedis for caching and queuesLOG_LEVELdebug, info, warn, errorMAX_EXECUTION_TIMEOUTMax workflow runtime (ms)Database Setup
Scaling
Typeflow supports horizontal scaling with multiple instances behind a load balancer.
Load Balancer
Use nginx, HAProxy, or cloud load balancers
Session Storage
Configure Redis for shared sessions across instances
Queue Workers
Separate worker processes for workflow execution
Production Security
- Use HTTPS — Configure TLS/SSL for all traffic
- Strong Secrets — Generate random secrets for NEXTAUTH_SECRET
- Database Security — Use strong passwords and restrict network access
- Regular Updates — Keep Docker images and dependencies updated
- Backup Strategy — Regular automated database backups
- Rate Limiting — Configure limits on API and webhook endpoints