How to Install Flowise in Docker and Build Your First Drag-and-Drop AI Agent

You have a chatbot idea that actually understands your own documents, but the moment you picture building it, you see backend code, API plumbing, and integration pieces that may not fit together. Flowise cuts that path short. Instead of writing a pipeline from scratch, you drag nodes onto a canvas, connect them, and test the result in a chat panel beside the canvas. This guide takes you from an empty machine to a working chatflow, all inside Docker, with a cloud model or a local model through Ollama.

Flowise is an open source platform for building AI agents and workflows powered by large language models (LLMs). Its official documentation describes three visual builders: Assistant, the most beginner-friendly route; Chatflow, for single-agent systems and chatbots; and Agentflow, for more complex orchestration, including multi-agent setups. This guide uses Chatflow. It is easy to follow and still leaves room for techniques such as retrieval over your own documents.

Before you start

You need one machine with Docker and Docker Compose already running — a Linux laptop, a VPS, or a home server all work. Flowise runs on port 3000 by default, so make sure nothing else is using that port, or adjust it in the .env file later. You also need Git to fetch the official Flowise repository, plus one model choice: an API key from a cloud model provider, or Ollama for a local model.

There is no Node.js installation step here. That is the point of Docker: Flowise and its dependencies live inside the container, while your host machine stays clean.

Step 1: Clone the official repository and enter the docker folder

The official Flowise documentation offers two Docker routes. The one used in this guide is Docker Compose from the official repository. The second route, building an image yourself, appears near the end as an alternative.

Run these commands from your working directory:

git clone https://github.com/FlowiseAI/Flowise.git
cd Flowise/docker

Expected result: a Flowise folder appears on your machine, and inside it a docker folder holds the Compose files and sample configuration. If git is not found, install Git through your distribution's package manager first, then run the commands again.

Step 2: Copy the sample file into a real .env file

Inside the docker folder, copy .env.example to .env:

cp .env.example .env

Open .env in a text editor, for example with nano .env, and check at least this line:

PORT=3000

The PORT variable sets the HTTP port Flowise runs on, and its default is 3000. The official documentation also lists other variables worth knowing from day one: DATABASE_PATH for where data is stored when using SQLite, SECRETKEY_PATH for where the credential encryption key lives, and FLOWISE_SECRETKEY_OVERWRITE if you want to set your own encryption key so stored credentials stay decryptable when the storage path changes.

One warning deserves emphasis: do not leave port 3000 open to the internet without a protective layer. The official documentation warns that leaving default secrets and tokens in place raises the risk of forged tokens. On a public VPS, put a reverse proxy with HTTPS and login in front of Flowise before sharing its address with anyone. This guide starts with local access, and that is a deliberate choice.

Step 3: Start Flowise with Docker Compose

Still inside the Flowise/docker folder, run:

docker compose up -d

The -d flag runs the containers in the background and returns your terminal. The first run usually takes longer because the image needs to be downloaded.

Check that the service is up:

docker compose ps

Expected result: the Flowise service shows as running. If it keeps restarting or never appears, read the logs before changing configuration at random:

docker compose logs -f

Press Ctrl+C to leave the log view. The usual causes at this stage are one of three things: port 3000 is already taken by another application, Docker is not running, or the command was run from the wrong folder so Compose cannot find its file. Return to Flowise/docker and check those three in order.

Step 4: Open Flowise and learn the canvas

Open a browser and visit:

http://localhost:3000

If Flowise runs on a VPS, replace localhost with the server's IP address or domain, and make sure access is secured as discussed in Step 2. On versions that use email and password login, create the admin account when you first open the page, and store those credentials somewhere safe.

The home screen lists chatflows, assistants, and agentflows. Create a new chatflow and you land on an empty canvas. The left panel holds nodes. The middle is the canvas where nodes are arranged. On the right, once the flow is saved, a chat panel lets you test it. Those three panels are your whole workspace for the rest of this guide.

Step 5: Assemble your first chatflow — model, memory, and answers

The simplest chatflow that stays useful has four ingredients: a chat input, a chat model, conversation memory, and a chain that ties them together. Here is a layout you can copy directly.

  1. Drag a Chat input node onto the canvas. It receives messages from the chat panel.
  2. Drag a chat model node. This is where the local-versus-cloud choice shapes the next steps.
  3. Drag a conversation memory node, such as buffer memory, so the agent remembers earlier messages in the same session.
  4. Connect all three into a conversational chain, save the chatflow, and send one test message from the chat panel.

For a cloud model, pick the provider's model node, for example ChatOpenAI, then create a credential inside the node and paste in your API key. Flowise stores that key encrypted, which is why the SECRETKEY_PATH setting matters: losing the encryption key means older credentials cannot be decrypted.

For a local model, run Ollama first, then use the ChatOllama node. The official ChatOllama documentation gives this Docker example:

docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
docker exec -it ollama ollama run llama3

The first command runs Ollama on port 11434 with a volume named ollama for storing models. The second downloads and runs the llama3 model. In Flowise, drag the ChatOllama node, enter the name of the model running in Ollama, and set the Base URL to an Ollama address that the Flowise container can reach. One detail catches many people: localhost inside the Flowise container points at that container itself, not at the host machine or the Ollama container. So make sure both containers share a reachable network, or point the Base URL at the correct host address for your operating system.

Send a simple test message on a topic you know well, then check two things: whether the answer makes sense, and whether a follow-up question still connects to the earlier context. If the first answer arrives but context is lost, the memory node is almost certainly not wired in correctly. If the model node complains about credentials, recheck the API key or the Ollama model name rather than rebuilding the whole flow.

Step 6: Turn the chatflow into something that answers from your documents

A chatbot that only chats is fun for ten minutes, then feels empty. Flowise earns its keep when the same flow is connected to your own knowledge. The most common pattern is RAG: documents are split, turned into embeddings, stored in a vector store, and the most relevant chunks are pulled back whenever a question arrives.

On the canvas, the shape looks like this: add a document loader to read your files, connect it to a text splitter, pass the result to embeddings and a vector store for indexing, then connect a retriever from that vector store into your conversational chain. You do not need to build indexing and question-answering in one tangled canvas; Flowise separates them through document upsert and document stores, so documents can be updated without disturbing a finished chatflow.

Start with one small document, such as a single internal guide or one FAQ file. Test with a question whose answer is in the document, then with a question whose answer is not. The second test is the revealing one: it shows whether the agent honestly says it does not know, or confidently invents an answer.

Alternative: build the Docker image yourself

If you would rather not use the repository's Compose files, the official documentation also documents a direct Docker image route. From the Flowise repository root, build the image:

docker build --no-cache -t flowise .

Then run it:

docker run -d --name flowise -p 3000:3000 flowise

Open the same address, http://localhost:3000. To stop this container, run:

docker stop flowise

For the Compose installation, the stop command is different:

docker compose stop

Do not mix them up. docker stop flowise stops a container named flowise, while docker compose stop stops the services defined by the Compose file in your current folder.

Summary table

PartWhat is usedNote
Main installationDocker Compose from the official repositorydocker compose up -d from Flowise/docker
Default port3000Set through PORT in .env
ConfigurationFlowise/docker/.envCopied from .env.example
Cloud modelProvider model node + API credentialCredentials are stored encrypted
Local modelChatOllama node + OllamaExample: ollama run llama3, Ollama port 11434
AlternativeBuild the image yourselfdocker build --no-cache -t flowise .
Stoppingdocker compose stop or docker stop flowiseMatch the installation method you used

Final checklist

  • Official repository cloned and commands run from Flowise/docker
  • .env created from .env.example and PORT checked
  • docker compose up -d running and the service shows as active
  • Flowise opens on port 3000
  • One chatflow saved and answering a test message
  • Local or cloud model connected correctly, including conversation memory
  • Any public access sits behind HTTPS and login

Flowise does not replace your judgment about models and data. It replaces the repetitive assembly work, so your time goes to the decisions that matter more: which documents to trust, how answers behave on hard questions, and when an agent may answer alone versus handing off to a human. Build one small chatflow today, test it until you understand its behavior, then extend it to more documents and tools.

Have you built a flow like this before, and where do you usually get stuck: installation, model choice, or flow design itself? Share it in the comments, so the next guide can answer the obstacle you actually hit.

Read also: Using Ollama Models from Your Own App via the OpenAI-Compatible API, and https://blog.rnevio.com/2026/10/how-to-install-dify-on-vps-with-docker.html.

Diskusi

Ada pertanyaan atau pengalaman yang ingin dibagikan?

0komentar

Komentar ditinjau sebelum ditampilkan. Mari berdiskusi dengan sopan dan sesuai topik.