Skip to content
Menu
vAndu
  • Home
  • Home Lab
  • AI/ML & vGPU
  • Snapshot
  • The Lab Floor
vAndu
08 dify quick setup

08 Dify Quick Setup Guide

Posted on June 3, 2026June 3, 2026

Short description

Dify is an all in one platform to build, run, and publish LLM apps. It covers chatbots, agents, visual workflows, and RAG knowledge bases, then lets you publish any of them as a web app or an API.

Purpose and how people use it

People use Dify to go from idea to a shippable LLM app fast. You can build a document question and answer assistant over your own files, an agent that uses tools, or a multi step workflow, then expose it through an API for other systems to call. It is one of the most complete local app platforms.

Prerequisites

  1. Docker and git installed.
  2. Ollama running.

Quick setup

cd ~
git clone https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env

Set a strong secret key:

echo "SECRET_KEY=$(openssl rand -base64 42)" >> .env

Open .env and set EXPOSE_NGINX_PORT=8080. That is the host port you will visit in the browser. Then start the stack:

docker compose up -d

Open http://localhost:8080/install, create the admin account, and log in.

Connect your local models. In Dify 1.x, model providers are plugins, so first install the Ollama plugin from the Plugins area. Then open Settings, then Model Provider, choose Ollama, and add a model with base URL http://host.docker.internal:11434.

The two things that trip everyone up

  1. There are two nginx port settings. NGINX_PORT is internal to the container network. The one you actually want for your browser is EXPOSE_NGINX_PORT. Change the wrong one and Dify comes up on a port you did not expect, often port 80.
  2. When you add an Ollama model, set Model Type to LLM for chat models such as qwen3:32b. If you pick Text Embedding for a chat model you get a 501 error that says the model does not support embeddings. Use Text Embedding only for real embedding models such as bge-m3.

Home Labber who likes to build things and push it to the limits. vSphere is like Lego for adults.

“The fastest way to learn IT is 80% labbing and 20% studying theory. Just do it and have fun.” – vAndu

“If you wish to achieve worthwhile things in your personal and career life, you must become a worthwhile person in your own self-development” – Brian Tracy

VMware vExpert 2023
VMware vExpert NSX
VMware vExpert Pro
©2026 vAndu | Powered by SuperbThemes!