Docker Compose (Recommended)
Docker Compose is the easiest way to deploy Flowise with all necessary configurations.Quick Start
Create environment file
Copy the example environment file and customize it:Edit the
.env file with your preferred settings. At minimum, set:Access Flowise
Open your browser and navigate to http://localhost:3000
Docker Compose Configuration
The defaultdocker-compose.yml includes:
docker-compose.yml
Managing Docker Compose
Persistent Data
By default, Flowise stores data in~/.flowise on the host machine. This includes:
- Database files (if using SQLite)
- Uploaded files
- Configuration data
- Secret keys
Standalone Docker
You can also run Flowise using standalone Docker commands.Using Pre-built Image
Building Custom Image
If you need to customize the Flowise image:Build the image
- Node.js 20 Alpine base
- Chromium for Puppeteer
- All system dependencies
- Application source code
Dockerfile Overview
Dockerfile
Docker with External Database
For production deployments, use an external database like PostgreSQL:docker-compose.yml
Health Checks
Flowise includes a built-in health check endpoint:Troubleshooting
Container won’t start
Check logs
Check logs
Verify port availability
Verify port availability
Ensure port 3000 (or your configured port) is not already in use:
Check volume permissions
Check volume permissions
Ensure the
~/.flowise directory has proper permissions:Database connection issues
Memory issues
If you encounter memory-related errors, increase the Node.js heap size:Updating Flowise
- Docker Compose
- Standalone Docker
Next Steps
Environment Variables
Configure Flowise with environment variables
Authentication
Set up user authentication and security
Cloud Providers
Deploy to AWS, Azure, GCP, and more
