Deployment Options
Flowise can be deployed in several ways:Docker
Deploy Flowise using Docker containers for consistent, isolated environments
Cloud Providers
Deploy to AWS, Azure, GCP, Digital Ocean, and other cloud platforms
Self-Hosting
Install and run Flowise directly on your own servers
Flowise Cloud
Managed hosting with zero configuration required
Quick Start Methods
NPM Installation
The fastest way to get started locally:Docker
Run Flowise in a container:Docker Compose
For production deployments with persistence:System Requirements
Flowise requires Node.js >= 18.15.0 for local installations.
Minimum Requirements
- CPU: 1 core
- RAM: 2GB
- Storage: 10GB available space
- Node.js: Version 18.15.0 or higher (for non-Docker deployments)
Recommended for Production
- CPU: 2+ cores
- RAM: 4GB+
- Storage: 20GB+ SSD
- Database: PostgreSQL or MySQL (SQLite for development only)
Architecture Considerations
Monorepo Structure
Flowise consists of three main modules:- server: Node.js backend serving API logic
- ui: React frontend interface
- components: Third-party node integrations
- api-documentation: Auto-generated Swagger API documentation
Queue Mode (Advanced)
For high-traffic production environments, Flowise supports queue mode with Redis:- Main instance: Handles HTTP requests and UI
- Worker instances: Process chatflow executions asynchronously
- Redis: Message queue for job distribution
Data Persistence
By default, Flowise stores data in the following locations:- Database:
~/.flowise(SQLite) or configured database - Logs:
~/.flowise/logs - Credentials:
~/.flowise(encrypted) - Storage:
~/.flowise/storage(uploaded files)
Environment Configuration
Flowise is highly configurable through environment variables. Key configuration areas:- Database: SQLite, PostgreSQL, or MySQL
- Authentication: JWT tokens, session secrets
- Storage: Local, AWS S3, or Google Cloud Storage
- Logging: Debug levels and log paths
- Security: CORS, proxy settings, HTTP deny lists
- Queue: Redis configuration for distributed processing
Production Best Practices
Use a Production Database
Switch from SQLite to PostgreSQL or MySQL for better performance and reliability:
Configure Persistent Storage
Set up cloud storage (S3 or GCS) or ensure local storage is properly backed up:
Security Considerations
- Encryption Keys: Generate secure secrets using
openssl rand -hex 32 - Database Security: Enable SSL for database connections in production
- Network Security: Configure firewall rules and security groups
- Secret Management: Use AWS Secrets Manager or similar for sensitive credentials
- Regular Updates: Keep Flowise and dependencies up to date
Scaling Strategies
Vertical Scaling
Increase resources for your Flowise instance:Horizontal Scaling (Queue Mode)
Deploy multiple worker instances for distributed processing:- Main instance handles HTTP/UI requests
- Worker instances process chatflow executions
- Redis coordinates job distribution
- Shared database and storage across all instances
Next Steps
Docker Deployment
Deploy with Docker and Docker Compose
Cloud Providers
Deploy to AWS, Azure, GCP, and more
Self-Hosting Guide
Install on your own infrastructure
Environment Variables
Configure your Flowise instance