Self-hosting requires more technical skill to setup instance, backing up database and maintaning updates. If you aren't experienced at managing servers and just want to use the webapp, we recommend using Flowise Cloud.
{% hint style="info" %}
Pre-requisite: ensure NodeJS is installed on machine. Node v18.15.0
or v20
and above is supported.
{% endhint %}
Install Flowise locally using NPM.
- Install Flowise:
npm install -g flowise
- Start Flowise:
npx flowise start
- Open: http://localhost:3000
There are two ways to deploy Flowise with Docker:
- Go to
docker folder
at the root of the project - Copy the
.env.example
file and paste it as another file named.env
- Run:
docker compose up -d
- Open: http://localhost:3000
- You can bring the containers down by running:
docker compose stop
- Build the image:
docker build --no-cache -t flowise .
- Run image:
docker run -d --name flowise -p 3000:3000 flowise
- Stop image:
docker stop flowise
Flowise has 3 different modules in a single mono repository:
- Server: Node backend to serve API logics
- UI: React frontend
- Components: Integration components
Install PNPM.
npm i -g pnpm
Simple setup using PNPM:
- Clone the repository
git clone https://github.com/FlowiseAI/Flowise.git
- Go into repository folder
cd Flowise
- Install all dependencies of all modules:
pnpm install
- Build the code:
pnpm build
Start the app at http://localhost:3000
pnpm start
Step-by-step setup for project contributors:
- Fork the official Flowise Github Repository
- Clone your forked repository
- Create a new branch, see guide. Naming conventions:
- For feature branch:
feature/<Your New Feature>
- For bug fix branch:
bugfix/<Your New Bugfix>
.
- For feature branch:
- Switch to the branch you just created
- Go into repository folder:
cd Flowise
- Install all dependencies of all modules:
pnpm install
- Build the code:
pnpm build
- Start the app at http://localhost:3000
pnpm start
- For development build:
- Create
.env
file and specify thePORT
(refer to.env.example
) inpackages/ui
- Create
.env
file and specify thePORT
(refer to.env.example
) inpackages/server
pnpm dev
-
Any changes made in
packages/ui
orpackages/server
will be reflected at http://localhost:8080 -
For changes made in
packages/components
, you will need to build again to pickup the changes -
After making all the changes, run:
pnpm build
and
pnpm start
to make sure everything works fine in production.
Enterprise plans have separate repository and docker image.
Once granted access to both, the setup is the same as #setup-1. Before starting the app, enterprise users are required to fill in the values for Enterprise Parameters in the .env
file. Refer to .env.example
for the required changes.
Reach out to support@flowiseai.com for the value of following env variables:
LICENSE_URL
FLOWISE_EE_LICENSE_KEY
For Docker Installation:
cd docker
cd enterprise
docker compose up -d
In this video tutorial, Leon provides an introduction to Flowise and explains how to set it up on your local machine.
{% embed url="https://youtu.be/nqAK_L66sIQ" %}