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

docker-compose.yml
Full production setup with PostgreSQL
Terminal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

Environment Variables

Required Variables
DATABASE_URL

PostgreSQL connection string

postgresql://user:pass@host:5432/database
NEXTAUTH_SECRET

Secret for signing session tokens (min. 32 chars)

openssl rand -base64 32
NEXTAUTH_URL

Your public URL

https://typeflow.your-domain.com
Optional Variables
ENCRYPTION_KEYCustom key for credential encryption
REDIS_URLRedis for caching and queues
LOG_LEVELdebug, info, warn, error
MAX_EXECUTION_TIMEOUTMax workflow runtime (ms)

Database Setup

Running Migrations
Terminal
Backup & Restore
Terminal

Scaling

Horizontal 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

Resource Recommendations
Small (1-10 workflows)1 CPU, 1GB RAM
Medium (10-50 workflows)2 CPU, 4GB RAM
Large (50+ workflows)4+ CPU, 8GB+ RAM, Redis

Production Security

Security Checklist
  • 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