Docker provides the most consistent and portable way to deploy Flowise. This guide covers simple container deployment, Docker Compose setup, and advanced queue mode configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yocxy2/Flowise/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start with Docker
Using Pre-built Image
The fastest way to run Flowise in Docker:Managing the Container
Building from Source
Build Your Own Image
Build Flowise from the monorepo source:Build the image
- Installs system dependencies (Chromium, Cairo, Pango)
- Sets up Node.js 20 Alpine environment
- Installs pnpm and builds the monorepo
- Configures Puppeteer for Chromium
The build process requires 8GB+ of RAM. The
NODE_OPTIONS=--max-old-space-size=8192 is set in the Dockerfile.Docker Compose Deployment
Standard Setup
Docker Compose provides the recommended way to deploy Flowise with data persistence:Stop and Manage Services
Queue Mode (Advanced)
Queue mode enables distributed processing for high-traffic production environments using Redis for job coordination.Architecture
- Main Instance: Handles HTTP requests, UI, and API
- Worker Instance(s): Process chatflow executions asynchronously
- Redis: Message queue for job distribution
- Shared Storage: Database and files accessible to all instances
Using Pre-built Images
Start queue mode with pre-built images
- Redis container (port 6379)
- Flowise main instance (port 3000)
- Flowise worker instance (port 5566)
Building from Source
For custom builds in queue mode:Queue Configuration
Key environment variables for queue mode:.env
Data Persistence
Volume Mounting
The Docker Compose configuration mounts~/.flowise to persist:
- SQLite database (if using)
- Encryption keys
- Uploaded files
- Log files
Database Configuration
For production, use PostgreSQL or MySQL:.env
Cloud Storage
Configure S3 or Google Cloud Storage for uploaded files:Production Configuration
Health Checks
The Docker Compose configuration includes health checks:Environment Variables
Essential production settings:Scaling Worker Instances
Scale workers horizontally in queue mode:Troubleshooting
Container Won’t Start
Check logs for errors:- Port 3000 already in use: Change
PORTin.env - Permission errors: Ensure volume mount permissions
- Memory issues: Increase Docker memory allocation
Database Connection Errors
Verify database settings:Queue Mode Issues
Verify Redis connectivity:Performance Issues
Increase Node.js memory:Docker Compose Reference
Thedocker-compose.yml includes:
- Image:
flowiseai/flowise:latest - Restart Policy:
always - Health Checks: Automatic monitoring
- Volume Mounts: Data persistence
- Environment Variables: Full configuration support
- Port Mapping: Configurable via
.env
Next Steps
Environment Variables
Complete environment configuration reference
Cloud Deployment
Deploy to AWS, Azure, GCP, and more
Production Best Practices
Security and scaling considerations
API Documentation
Integrate with Flowise APIs