What is Dify?
Dify is the most complete LLM app platform in open source: a visual builder for chatbots, agents, and multi-step workflows, with built-in RAG over your documents, model management across providers, annotations, and usage observability. 120k+ GitHub stars say the demand is real.
It is also, honestly, the heaviest template in this catalogue: eleven services mirroring upstream’s compose at the 1.14 line - api/worker/beat, web, the plugin daemon, a code-execution sandbox with its squid egress guard, same-origin nginx routing (which eliminates post-deploy URL variables), plus its own Postgres, noeviction Valkey, and bundled Qdrant. The experimental badge means exactly that: validate on a dev project, bump the version-locked images together.
Two honest notes carried from the license and pricing pages: self-hosting is single-tenant by license (one shared Dify for multiple customer tenants needs upstream permission), and Dify Cloud meters message credits - which self-hosting does not.
What you get
- Visual builder: chatbots, agents, and multi-step workflows
- Built-in RAG: ingest, chunk, embed, retrieve - Qdrant bundled
- Model management across providers (litellm plugs in as OpenAI-compatible)
- Plugin ecosystem via the bundled daemon
- Sandboxed code execution with SSRF-guarded egress
- Same-origin routing: no post-deploy URL variables
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
entry | nginx router (:5000) - api + web same-origin | yes |
api / worker / worker_beat / web / plugin_daemon | the Dify platform (version-locked images) | no |
sandbox / ssrf_proxy | code execution + egress guard | no |
db / redis / vectordb | Postgres (2 DBs) / noeviction Valkey / Qdrant | no |
Before you deploy
SECRET_KEY + six service secretsopenssl one-liners in .env.example - nothing else to configure
Sizing and billing
Upstream’s floor is 4 GiB; this allocation gives the real shape room. The four langgenius images are version-locked - upgrade them together with release notes open.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 26.37 GiB of volumes cost $0.15 per GiB a month ($3.96/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Dify Cloud | Professional | $59/mo | per workspace: 5,000 message credits/mo, 3 members, 50 apps; Team $159/mo |
Self-hosted Dify has no message-credit meter; LLM calls bill at your providers either way. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Dify, Flowise, or Open WebUI?
Open WebUI (1 container) for team chat over models. Flowise (2 services) for visual LLM flows and embeddable bots. Dify (11 services) when you want the full platform - workflows, RAG pipelines, plugins, multi-app workspaces - and accept the operational weight. The catalogue ships all three so the choice is honest.
What does the license actually restrict?
Dify’s open-source license is Apache-2.0 plus two conditions: keep the branding, and do not operate one Dify as a multi-tenant service for separate customers without permission. Your org self-hosting its own workspace - the thing this template does - is explicitly fine.
How does the cost compare to Dify Cloud?
Dify Cloud Professional prices per workspace, with 5,000 message credits and caps on apps and documents. This stack has no credit metering - you pay for the compute it reserves, and the LLM calls themselves bill at your providers either way (cap them via the litellm template).
Why so many services?
Because Dify genuinely is a platform: async ingestion needs workers, plugins need their daemon, untrusted code needs a sandbox with guarded egress, and RAG needs a vector store. The template wires all of it so one deploy works - but the page count is the honest price of the feature count.