Published

Dify

Open-source platform for building LLM apps, workflows, agents and RAG knowledge bases. It calls external model providers through plugins and does not run models itself.

Resources by load level

What the app itself needs at each level, next to what we recommend for a server that runs only this app.

LevelWhat it meansApp requirementsRecommended
LightEstimateUp to 10 users, 5 concurrent app/workflow runs, 20 apps, 5 plugins; knowledge base up to 1 GB of files and 10,000 chunks (1536-dim embeddings).1.997 vCPU · 3.999 GiB RAM · 16.5 GiB disk2.517 vCPU · 6.299 GiB RAM · 29.9 GiB disk
MediumEstimateUp to 50 users, 10 concurrent app/workflow runs, 100 apps, 15 plugins; knowledge base up to 10 GB of files and 100,000 chunks (1536-dim embeddings).3.869 vCPU · 10.423 GiB RAM · 72.9 GiB disk4.763 vCPU · 14.008 GiB RAM · 94.76 GiB disk
HeavyEstimateUp to 200 users, 20 concurrent app/workflow runs, 500 apps, 30 plugins; knowledge base up to 50 GB of files and 500,000 chunks (1536-dim embeddings).5.613 vCPU · 19.771 GiB RAM · 119.7 GiB disk6.856 vCPU · 25.226 GiB RAM · 148.58 GiB disk

Recommended = app requirements + system baseline + safety headroom, under sizing policy 2026.10.0. Options stay at their defaults. “Estimate” means the sources give no number for that case, so it is worked out from them by the method stated under Components. How the numbers are built

Size it in the Stack Sizer

Need a server for this? Look for at least 2.517 vCPU / 6.299 GiB RAM

Based on the Recommended figure for Light load above, which includes system baseline and safety headroom.

ANAROQ is in development and doesn't sell servers. These are some options for renting a server, in no particular order.

Regular links, not affiliate links. ANAROQ earns nothing from them. Providers are not ranked. How ANAROQ may earn from links

Ready-to-run files

Support level Official install

No Compose template from ANAROQ: install it the official way.

Why: Dify's official Compose file at 1.17.1 is 1,328 lines with profiles for about 20 vector stores, depends on files and folders from its repository (nginx templates, SSRF proxy settings) and a 300-line .env.example. It cannot be generated correctly as a single file: clone the repository at the pinned tag and run it from its docker/ folder.

Open the official installation of Dify

Components

What each component needs at each load level, before baseline and headroom.

vCPU / GiB RAM / GiB disk
ComponentLightMediumHeavySources
Dify API (app)0.083 / 0.25 / 3.60.166 / 0.5 / 12.60.332 / 1 / 52.6[1][2][3][4][7]
Dify API (collaboration WebSocket) (app)———
Dify Celery worker (worker)0.333 / 1 / 00.666 / 2 / 01.332 / 4 / 0[1][2][3][4]
Dify Celery beat (worker)0.042 / 0.125 / 00.042 / 0.125 / 00.042 / 0.125 / 0[1][3][4]
Dify Web (Next.js) (app)0.083 / 0.25 / 0.60.166 / 0.5 / 0.60.332 / 1 / 0.6[1][3][4][8]
Dify plugin daemon (app)0.083 / 0.25 / 2.50.166 / 0.5 / 3.90.332 / 1 / 6.1[1][2][3][4][9]
Dify agent backend (app)0.083 / 0.25 / 10.166 / 0.5 / 10.332 / 1 / 1[1][3][4][10]
DifySandbox (code execution) (other)0.042 / 0.125 / 0.70.084 / 0.25 / 0.70.168 / 0.5 / 0.7[1][3][4][11]
Dify agent local sandbox (other)0.042 / 0.125 / 0.60.084 / 0.25 / 0.60.168 / 0.5 / 0.6[1][3][4][12]
PostgreSQL (database)1 / 1 / 6.52 / 4 / 51.52 / 4 / 51.5[19][20][21][22][23][24][25]
Redis (cache)0.01 / 0.031 / 0.10.02 / 0.062 / 0.10.04 / 0.124 / 0.1[1][3][4][13]
Vector database (Weaviate by default) (database)0.083 / 0.25 / 0.50.166 / 1.3 / 1.50.332 / 5.9 / 6.1[1][3][4][6][14]
nginx reverse proxy (proxy)0.01 / 0.031 / 0.20.02 / 0.062 / 0.20.04 / 0.124 / 0.2[1][3][4][17]
SSRF proxy (Squid) (proxy)0.01 / 0.031 / 0.20.02 / 0.062 / 0.20.04 / 0.124 / 0.2[1][3][4][18]
Agent SSRF proxy (Squid) (proxy)0.01 / 0.031 / 00.02 / 0.062 / 00.04 / 0.124 / 0[1][3][4]
How the estimates are worked out
  • Dify API · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 859 MiB image × 3 = 2.6 GiB + 1 GB uploaded files in ./volumes/app/storage (GB taken as GiB).
  • Dify API · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 2.6 GiB image + 10 GB uploaded files in ./volumes/app/storage (GB taken as GiB).
  • Dify API · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 2.6 GiB image + 50 GB uploaded files in ./volumes/app/storage (GB taken as GiB).
  • Dify Celery worker · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. CELERY_WORKER_AMOUNT=4 by default. Disk: reuses the dify-api image and storage volume (counted on api).
  • Dify Celery worker · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). CELERY_WORKER_AMOUNT=4 by default. Disk: reuses the dify-api image and storage volume (counted on api).
  • Dify Celery worker · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). CELERY_WORKER_AMOUNT=4 by default. Disk: reuses the dify-api image and storage volume (counted on api).
  • Dify Celery beat · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Kept at the light share at every level: beat only schedules periodic tasks, the worker runs them. Disk: reuses the dify-api image.
  • Dify Celery beat · Medium: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Kept at the light share at every level: beat only schedules periodic tasks, the worker runs them. Disk: reuses the dify-api image.
  • Dify Celery beat · Heavy: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Kept at the light share at every level: beat only schedules periodic tasks, the worker runs them. Disk: reuses the dify-api image.
  • Dify Web (Next.js) · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 192 MiB compressed × 3 = 0.6 GiB.
  • Dify Web (Next.js) · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 192 MiB compressed × 3 = 0.6 GiB.
  • Dify Web (Next.js) · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 192 MiB compressed × 3 = 0.6 GiB.
  • Dify plugin daemon · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 572 MiB image × 3 = 1.7 GiB + 5 plugins × 50 MiB max package (PLUGIN_MAX_PACKAGE_SIZE) × 3 = 0.8 GiB.
  • Dify plugin daemon · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 1.7 GiB image + 15 plugins × 50 MiB max package × 3 = 2.2 GiB.
  • Dify plugin daemon · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 1.7 GiB image + 30 plugins × 50 MiB max package × 3 = 4.4 GiB.
  • Dify agent backend · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 319 MiB compressed × 3 = 1.0 GiB.
  • Dify agent backend · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 319 MiB compressed × 3 = 1.0 GiB.
  • Dify agent backend · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 319 MiB compressed × 3 = 1.0 GiB.
  • DifySandbox (code execution) · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 209 MiB compressed × 3 = 0.7 GiB.
  • DifySandbox (code execution) · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 209 MiB compressed × 3 = 0.7 GiB.
  • DifySandbox (code execution) · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 209 MiB compressed × 3 = 0.7 GiB.
  • Dify agent local sandbox · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 187 MiB compressed × 3 = 0.6 GiB; agent workspace volumes not included.
  • Dify agent local sandbox · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 187 MiB compressed × 3 = 0.6 GiB; agent workspace volumes not included.
  • Dify agent local sandbox · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 187 MiB compressed × 3 = 0.6 GiB; agent workspace volumes not included.
  • PostgreSQL · Light: Embedded metadata DB with the image's default config: equals the PostgreSQL profile's light preset (≤ 5 GB data, ≤ 20 concurrent connections) at every load level. Light preset method: shared_buffers 25% of RAM, worst-case work_mem/maintenance_work_mem budget, 0.5 GiB image + 5 GiB data + 1 GiB WAL.
  • PostgreSQL · Medium: RAM: 4 × light; shared_buffers 1 GiB = 25% (docs guidance); the other 3 GiB covers worst-case 100 connections × work_mem 4 MB × hash_mem_multiplier 2 (800 MB) plus 4 × maintenance_work_mem 64 MB. vCPU: 2 active backend processes, or a leader plus one parallel worker. Disk: 0.5 GiB image (155 MiB compressed × 3, rounded up) + 50 GiB data + 1 GiB WAL (max_wal_size default); GB taken as GiB.
  • PostgreSQL · Heavy: RAM: 4 × light; shared_buffers 1 GiB = 25% (docs guidance); the other 3 GiB covers worst-case 100 connections × work_mem 4 MB × hash_mem_multiplier 2 (800 MB) plus 4 × maintenance_work_mem 64 MB. vCPU: 2 active backend processes, or a leader plus one parallel worker. Disk: 0.5 GiB image (155 MiB compressed × 3, rounded up) + 50 GiB data + 1 GiB WAL (max_wal_size default); GB taken as GiB.
  • Redis · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 11 MiB compressed × 3, rounded up to 0.1 GiB (covers the small RDB file).
  • Redis · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 11 MiB compressed × 3, rounded up to 0.1 GiB (covers the small RDB file).
  • Redis · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 11 MiB compressed × 3, rounded up to 0.1 GiB (covers the small RDB file).
  • Vector database (Weaviate by default) · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Weaviate rule of thumb for 10,000 vectors × 1536 dims: 2 × 61 MB = 0.115 GiB, within the share. Disk: 87 MiB image × 3 = 0.3 GiB + 0.115 GiB, rounded up to 0.5.
  • Vector database (Weaviate by default) · Medium: RAM: light share 0.25 GiB (covers 10,000 vectors) plus Weaviate's rule of thumb 2 × vectors × dims × 4 B for the vectors above 10,000 (90,000, 1536 dims) = 0.25 + 1.03 → 1.3 GiB. Disk: 87 MiB image × 3 = 0.3 GiB + 2 × raw vector size = 0.3 + 1.145 → 1.5 GiB, rounded up to 0.1. vCPU: light share × concurrency factor.
  • Vector database (Weaviate by default) · Heavy: RAM: light share 0.25 GiB (covers 10,000 vectors) plus Weaviate's rule of thumb 2 × vectors × dims × 4 B for the vectors above 10,000 (490,000, 1536 dims) = 0.25 + 5.607 → 5.9 GiB. Disk: 87 MiB image × 3 = 0.3 GiB + 2 × raw vector size = 0.3 + 5.722 → 6.1 GiB, rounded up to 0.1. vCPU: light share × concurrency factor.
  • nginx reverse proxy · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 61 MiB compressed × 3 = 0.2 GiB.
  • nginx reverse proxy · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 61 MiB compressed × 3 = 0.2 GiB.
  • nginx reverse proxy · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 61 MiB compressed × 3 = 0.2 GiB.
  • SSRF proxy (Squid) · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: 67 MiB compressed × 3 = 0.2 GiB.
  • SSRF proxy (Squid) · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: 67 MiB compressed × 3 = 0.2 GiB.
  • SSRF proxy (Squid) · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: 67 MiB compressed × 3 = 0.2 GiB.
  • Agent SSRF proxy (Squid) · Light: Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. Disk: reuses the squid image (counted on ssrf-proxy).
  • Agent SSRF proxy (Squid) · Medium: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 2, linear in concurrent runs (5 → 10). Disk: reuses the squid image (counted on ssrf-proxy).
  • Agent SSRF proxy (Squid) · Heavy: Light share (split of Dify's 2 vCPU / 4 GiB minimum by process count) × 4, linear in concurrent runs (5 → 20). Disk: reuses the squid image (counted on ssrf-proxy).
  • collaboration · Dify API (collaboration WebSocket): Light: share of Dify's official minimum (2 vCPU, 4 GiB for the whole stack), used as the app total; the engine adds OS/Docker separately. After PostgreSQL (1 vCPU, 1 GiB), 1 vCPU / 3 GiB is split by default process count: 0.25 GiB per service process (Celery worker runs 4), 0.125 for beat and each sandbox, 0.031 for redis, nginx and each squid; vCPU = RAM ÷ 3. One Gunicorn worker (API_WEBSOCKET_WORKER_AMOUNT=1) = one service-process share, same at every level. Disk: reuses the dify-api image.
  • vector-db · Vector database (Weaviate by default): langgenius/qdrant:v1.8.3 is 123 MiB compressed × 3 = 0.4 GiB vs 0.3 GiB for Weaviate: +0.1 GiB. RAM and vCPU keep the Weaviate figures (no negative deltas).
  • vector-db · Vector database (Weaviate by default): pgvector/pgvector:pg16 (a separate PostgreSQL container) is 152 MiB compressed × 3 = 0.5 GiB vs 0.3 GiB for Weaviate: +0.2 GiB. RAM and vCPU keep the Weaviate figures.

Options that change resources

collaboration

Real-time workflow collaboration. On by default (`collaboration` in COMPOSE_PROFILES); it runs the extra api_websocket container. Removing the profile stops that container.

Default: on

  • When on: Dify API (collaboration WebSocket) +0.083 vCPU · +0.25 GiB RAM · +0 GiB disk [1][2][3][4]
vector-db

Vector store for knowledge bases (VECTOR_STORE, which also selects the Compose profile). Presets size the vector-db container with Weaviate figures; Qdrant and pgvector add only their larger image.

Default: weaviate

  • When qdrant: Vector database (Weaviate by default) +0 vCPU · +0 GiB RAM · +0.1 GiB disk [3][14][15]
  • When pgvector: Vector database (Weaviate by default) +0 vCPU · +0 GiB RAM · +0.2 GiB disk [3][14][16]

Ports

Public ports are meant to be reached from outside the stack, usually through a reverse proxy; internal ones stay on the stack's own network.

ComponentPortExposurePurposeSources
nginx reverse proxy80/tcpPublic, through a proxyHTTP entry point for the web app, console and API[3][4]
nginx reverse proxy443/tcpPublic, through a proxyHTTPS entry point (when NGINX_HTTPS_ENABLED=true)[3][4]
Dify plugin daemon5003/tcpInternal onlyPlugin remote debugging; published on the host by default, firewall it[2][3]
Dify plugin daemon5002/tcpInternal onlyPlugin daemon API (also serves /e/ webhooks via nginx)[3][5]
Dify API5001/tcpInternal onlyDify API (behind nginx)[4][5]
Dify Web (Next.js)3000/tcpInternal onlyNext.js web frontend (behind nginx)[5]
DifySandbox (code execution)8194/tcpInternal onlyCode execution sandbox API[3][4]
Vector database (Weaviate by default)8080/tcpInternal onlyWeaviate HTTP API[4]
Redis6379/tcpInternal onlyRedis cache and Celery broker[4]
PostgreSQL5432/tcpInternal onlyPostgreSQL metadata database[4]
SSRF proxy (Squid)3128/tcpInternal onlySquid forward proxy for outbound requests from api and sandbox[3][4]

Every port in the catalog, with conflicts between apps

User and permissions (UID/GID)

The user each container's process runs as, and the paths it writes to. A bind mount for one of these paths must be writable by that UID:GID.

ComponentUID:GIDUserStarts as rootWrites toSources
Dify API1001:1001difyNo/app/api/storage[3][26]
Dify API (collaboration WebSocket)1001:1001difyNo/app/api/storage[3][26]
Dify Celery worker1001:1001difyNo/app/api/storage[3][26]
Dify Celery beat1001:1001difyNo—[3][26]
Dify Web (Next.js)1001:1001difyNo—[27]
Dify agent backend1001:1001difyNo/app/api/storage[28][30]
Dify plugin daemon0:0—No/app/storage[3][36]
DifySandbox (code execution)0:0—No/dependencies[3][34][35]
Dify agent local sandboxDerived1000:1000difyNo/home/dify/workspace[3][29][30][37]
PostgreSQL70:70postgresYes, prepares its directories, then drops to this user/var/lib/postgresql/data[3][44][45]
Redis999:1000redisYes, prepares its directories, then drops to this user/data[3][42][43]
Vector database (Weaviate by default)0:0—No/var/lib/weaviate[3][38]
nginx reverse proxy101:101nginxYes, prepares its directories, then drops to this user/etc/nginx/conf.d[3][31][32][39]
SSRF proxy (Squid)Assumption13:13proxyYes, prepares its directories, then drops to this user/var/spool/squid/var/log/squid[40]
Agent SSRF proxy (Squid)Assumption13:13proxyYes, prepares its directories, then drops to this user/var/spool/squid/var/log/squid[40]
  • Dify API: USER dify (1001:1001) in the image. The one-shot init_permissions container chowns ./volumes/app/storage to 1001:1001 once (flag file .init_permissions), so the bind mount is writable.
  • Dify agent backend: /app/api/storage is created and chowned to dify inside the image; Compose mounts no volume for this service.
  • Dify plugin daemon: The image sets no USER, so the daemon (and the plugins it installs) runs as root.
  • DifySandbox (code execution): The sandbox server runs as root (no USER in the image); each code execution runs as the sandbox user, UID 65537, group 0.
  • Dify agent local sandbox: USER dify is documented, but the Dockerfile creates it with useradd and no fixed UID on python:3.12-slim-bookworm; Debian gives the first regular user 1000:1000. Both paths are named volumes chowned to dify in the image.
  • Vector database (Weaviate by default): Weaviate (the default): the image sets no USER, so it runs as root. Qdrant and pgvector, if chosen, use their own images and paths.
  • nginx reverse proxy: The entrypoint and the nginx master run as root; workers run as nginx (101:101, `user nginx` in Dify's nginx.conf). The entrypoint writes conf.d/default.conf into the ./nginx/conf.d bind mount.
  • SSRF proxy (Squid): The image starts as root (no USER) and declares VOLUME /var/log/squid and /var/spool/squid. No official source states the UID Squid drops to: assumed Ubuntu's proxy user (13:13), the packaged default cache_effective_user.
  • Agent SSRF proxy (Squid): The image starts as root (no USER) and declares VOLUME /var/log/squid and /var/spool/squid. No official source states the UID Squid drops to: assumed Ubuntu's proxy user (13:13), the packaged default cache_effective_user.

Permission denied on a mount? Get the exact check and chown for this app

Storage growth

How much each component's data grows per month at each load level, on top of the disk in the profile. A value marked Assumption is ANAROQ's stated assumption, not a figure from the sources; the notes say what it rests on.

GiB per month
ComponentLightMediumHeavySources
Dify APIAssumption0.0830.8334.167
PostgreSQLAssumption0.1430.7152.861[33]
Vector database (Weaviate by default)Assumption0.010.0950.477[6]
What the growth figures rest on
  • Dify API: Uploaded files in ./volumes/app/storage. Assumed: the preset's 1 GB knowledge base fills over 12 months (1 ÷ 12, GB taken as GiB).
  • Dify API: Uploaded files in ./volumes/app/storage. Assumed: the preset's 10 GB knowledge base fills over 12 months (10 ÷ 12, GB taken as GiB).
  • Dify API: Uploaded files in ./volumes/app/storage. Assumed: the preset's 50 GB knowledge base fills over 12 months (50 ÷ 12, GB taken as GiB).
  • PostgreSQL: Run logs and messages are kept forever by default (WORKFLOW_LOG_CLEANUP_ENABLED=false, ENABLE_CLEAN_MESSAGES=false). Assumed: 10 users × 10 runs a day = 3,000 runs/month × 50 KiB per run.
  • PostgreSQL: Run logs and messages are kept forever by default (WORKFLOW_LOG_CLEANUP_ENABLED=false, ENABLE_CLEAN_MESSAGES=false). Assumed: 50 users × 10 runs a day = 15,000 runs/month × 50 KiB per run.
  • PostgreSQL: Run logs and messages are kept forever by default (WORKFLOW_LOG_CLEANUP_ENABLED=false, ENABLE_CLEAN_MESSAGES=false). Assumed: 200 users × 10 runs a day = 60,000 runs/month × 50 KiB per run.
  • Vector database (Weaviate by default): Weaviate data for the preset's 10,000 chunks (2 × raw vector size = 0.115 GiB). Assumed: reached over 12 months (÷ 12).
  • Vector database (Weaviate by default): Weaviate data for the preset's 100,000 chunks (2 × raw vector size = 1.145 GiB). Assumed: reached over 12 months (÷ 12).
  • Vector database (Weaviate by default): Weaviate data for the preset's 500,000 chunks (2 × raw vector size = 5.722 GiB). Assumed: reached over 12 months (÷ 12).

Upgrade and rollback

How to move to a new version safely, and how to go back if it fails.

Back up first

A timestamped copy of the dify folder (docker/volumes: database, storage, vector store, plugins; and docker/.env). For Weaviate, stop the services and copy ./volumes/weaviate with cp -a. [46][47][49]

Upgrade steps

  1. Read the upgrade guide of the target version in the release notes: steps vary between releases. [1]
  2. Back up the whole dify folder (cp -r dify "dify.bak.$(date +%Y%m%d%H%M%S)"), which includes docker/volumes and docker/.env. [46][47]
  3. Bring in the new release's files (release archive synced over dify/, or the new tag), compare each .env.example with its .env, and re-apply any docker-compose.yaml changes onto the new file. [1][46]
  4. In dify/docker run docker compose pull, then docker compose up -d; the api container runs database migrations on start (MIGRATION_ENABLED=true). [33][46][47]
  5. With existing Weaviate data, step the Weaviate server through every minor version to the bundled one (1.27.0 → 1.39.2 for Dify 1.17.1) before starting Dify on it. [49]

Roll back

No downgrade procedure is documented, and database migrations run on start. To roll back: docker compose down, put the timestamped dify.bak folder back in place of dify, then docker compose up -d with the previous release. [33][46][49]DerivedInferred from the documented pre-upgrade backup ("for easy restoration") and the Weaviate guide's advice to return to the snapshot if an upgrade goes wrong.

Known breaking changes

  • In 1.17.1: The bundled Weaviate server moves from 1.27.0 to 1.39.2; an existing Weaviate volume cannot jump in one step and must go through every minor version in order. [49]
  • In 1.9.2: weaviate-client v4 requires Weaviate server 1.27.0 or newer; a self-hosted Weaviate below 1.27 must be upgraded before Dify. [48]

Limits

  • No LLM inference is included: Dify calls external model providers (or a model server you run separately) through plugins. These figures exclude any model runtime or GPU. [1][3]
  • Weaviate keeps vectors in RAM: about 2 × vectors × dimensions × 4 bytes. Larger knowledge bases or bigger embedding models raise RAM beyond the presets (sized for 1536 dimensions). [6]
  • Default upload limit is 15 MB per document (UPLOAD_FILE_SIZE_LIMIT) and nginx accepts request bodies up to 100 MB (NGINX_CLIENT_MAX_BODY_SIZE). [2][4]

Security

  • Replace every published default in .env before going live: DB_PASSWORD and REDIS_PASSWORD (difyai123456), SANDBOX_API_KEY (dify-sandbox), WEAVIATE_API_KEY, PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY and DIFY_AGENT_SERVER_SECRET_KEY. Left empty, SECRET_KEY is auto-generated into the storage directory. [3][4]
  • Expose only nginx (80/443). Compose also publishes the plugin remote-debugging port 5003 on the host; block it at the firewall unless you develop plugins. [2][3]
  • Code nodes run in the sandbox with network access on by default (SANDBOX_ENABLE_NETWORK=true); outbound traffic goes through ssrf_proxy, which blocks private IPs. Keep the proxy, and turn sandbox network off if code nodes don't need it. [2][3]

Backup

  • Back up ./volumes/db/data (PostgreSQL: apps, users, conversations; prefer pg_dump of the dify and dify_plugin databases) and ./volumes/app/storage (uploaded files and the auto-generated SECRET_KEY). [3][4]
  • Back up the vector store volume (./volumes/weaviate, or ./volumes/qdrant / ./volumes/pgvector/data) and ./volumes/plugin_daemon (installed plugins); without them knowledge bases must be re-indexed and plugins reinstalled. [3]
  • Keep a copy of docker/.env: it holds the database, Redis and service keys the stack needs to read its data. [4]

Latest release

Newest upstream release
Dify 1.17.1 [7][41]
This profile was checked against

Dify 1.17.1

This profile was checked against the newest release.

Checked on
13 Oct 2026
State
Checked within the last 90 days
Where releases are published
GitHub Releases

Checked 2026-10-13: langgenius/dify-api:latest has the same digest as 1.17.1, and no newer stable 1.x tag exists on Docker Hub.

Latest releases of every app

Version

Profile status
Published
Checked against release
Dify 1.17.1
Profile version
1.1.0
Figures verified
10 Oct 2026
Catalog release
2026.10.10
Sizing policy
2026.10.0
Compose file
Not available yet
Official site
dify.ai

Sources

  1. Dify docs: Deploy Dify with Docker Compose (minimum CPU >= 2 Core, RAM >= 4 GiB) (Official docs · read 10 Oct 2026)
  2. Dify docs: Environment Variables (Official docs · read 10 Oct 2026)
  3. Dify 1.17.1 docker/docker-compose.yaml (Official Compose · read 10 Oct 2026)
  4. Dify 1.17.1 docker/.env.example (default COMPOSE_PROFILES, workers, passwords) (Official repository · read 10 Oct 2026)
  5. Dify 1.17.1 docker/nginx/conf.d/default.conf.template (upstream ports) (Official repository · read 10 Oct 2026)
  6. Weaviate docs: Resource planning (memory rule of thumb) (Official docs · read 10 Oct 2026)
  7. Docker Hub: langgenius/dify-api tag 1.17.1 (compressed size) (Official repository · read 10 Oct 2026)
  8. Docker Hub: langgenius/dify-web tag 1.17.1 (compressed size) (Official repository · read 10 Oct 2026)
  9. Docker Hub: langgenius/dify-plugin-daemon tag 0.6.10-local (compressed size) (Official repository · read 10 Oct 2026)
  10. Docker Hub: langgenius/dify-agent-backend tag 1.17.1 (compressed size) (Official repository · read 10 Oct 2026)
  11. Docker Hub: langgenius/dify-sandbox tag 0.2.15 (compressed size) (Official repository · read 10 Oct 2026)
  12. Docker Hub: langgenius/dify-agent-local-sandbox tag 1.17.1 (compressed size) (Official repository · read 10 Oct 2026)
  13. Docker Hub: library/redis tag 6-alpine (compressed size) (Official repository · read 10 Oct 2026)
  14. Docker Hub: semitechnologies/weaviate tag 1.39.2 (compressed size) (Official repository · read 10 Oct 2026)
  15. Docker Hub: langgenius/qdrant tag v1.8.3 (compressed size) (Official repository · read 10 Oct 2026)
  16. Docker Hub: pgvector/pgvector tag pg16 (compressed size) (Official repository · read 10 Oct 2026)
  17. Docker Hub: library/nginx tag 1.31 (same digest as latest, compressed size) (Official repository · read 10 Oct 2026)
  18. Docker Hub: ubuntu/squid tag 6.6-24.04_beta (same digest as latest, compressed size) (Official repository · read 10 Oct 2026)
  19. PostgreSQL 18 documentation: 19.4 Resource Consumption (Official docs · read 10 Oct 2026)
  20. PostgreSQL 18 documentation: 19.3 Connections and Authentication (Official docs · read 10 Oct 2026)
  21. PostgreSQL 18 documentation: 19.10 Vacuuming (autovacuum settings) (Official docs · read 10 Oct 2026)
  22. PostgreSQL 18 documentation: 19.5 Write Ahead Log (max_wal_size) (Official docs · read 10 Oct 2026)
  23. PostgreSQL 18 documentation: 51.2 How Connections Are Established (Official docs · read 10 Oct 2026)
  24. Docker Official Image postgres: documentation (docker-library/docs) (Official docs · read 10 Oct 2026)
  25. Docker Hub: library/postgres tag 18.6 (compressed image sizes) (Official repository · read 10 Oct 2026)
  26. Dify 1.17.1 api/Dockerfile (dify user 1001:1001, USER dify) (Official repository · read 13 Oct 2026)
  27. Dify 1.17.1 web/Dockerfile (dify user 1001:1001, USER dify) (Official repository · read 13 Oct 2026)
  28. Dify 1.17.1 dify-agent/Dockerfile (agent backend, dify user 1001:1001) (Official repository · read 13 Oct 2026)
  29. Dify 1.17.1 dify-agent-runtime/docker/Dockerfile (local sandbox: useradd dify without a fixed UID, USER dify) (Official repository · read 13 Oct 2026)
  30. Dify 1.17.1 .github/workflows/build-push.yml (which Dockerfile builds each image) (Official repository · read 13 Oct 2026)
  31. Dify 1.17.1 docker/nginx/docker-entrypoint.sh (renders conf.d/default.conf) (Official repository · read 13 Oct 2026)
  32. Dify 1.17.1 docker/nginx/nginx.conf.template (user nginx) (Official repository · read 13 Oct 2026)
  33. Dify 1.17.1 docker/envs/core-services/shared.env.example (MIGRATION_ENABLED, cleanup task defaults) (Official repository · read 13 Oct 2026)
  34. langgenius/dify-sandbox 0.2.15 internal/static/user.go (code runs as UID 65537) (Official repository · read 13 Oct 2026)
  35. Docker Hub: langgenius/dify-sandbox 0.2.15 image layers (no USER) (Official repository · read 13 Oct 2026)
  36. Docker Hub: langgenius/dify-plugin-daemon 0.6.10-local image layers (no USER) (Official repository · read 13 Oct 2026)
  37. Docker Hub: langgenius/dify-agent-local-sandbox 1.17.1 image layers (useradd dify, USER dify) (Official repository · read 13 Oct 2026)
  38. Docker Hub: semitechnologies/weaviate 1.39.2 image layers (no USER) (Official repository · read 13 Oct 2026)
  39. Docker Hub: library/nginx 1.31 image layers (nginx user 101:101) (Official repository · read 13 Oct 2026)
  40. Docker Hub: ubuntu/squid 6.6-24.04_beta image layers (no USER; VOLUME /var/log/squid, /var/spool/squid) (Official repository · read 13 Oct 2026)
  41. Docker Hub: langgenius/dify-api tag latest (same digest as 1.17.1) (Official repository · read 13 Oct 2026)
  42. redis/docker-library-redis v6.2.24 alpine Dockerfile (redis user 999:1000; tag 6-alpine) (Official repository · read 13 Oct 2026)
  43. redis/docker-library-redis v6.2.24 alpine docker-entrypoint.sh (chown /data, setpriv redis) (Official repository · read 13 Oct 2026)
  44. docker-library/postgres 15/alpine3.24 Dockerfile (postgres user 70:70) (Official repository · read 13 Oct 2026)
  45. docker-library/postgres 15/alpine3.24 docker-entrypoint.sh (chown PGDATA, gosu postgres) (Official repository · read 13 Oct 2026)
  46. Dify docs: Self-host FAQs (upgrade commands, backup before upgrading) (Official docs · read 13 Oct 2026)
  47. Dify docs: Storage & Migration (what to back up, version upgrade) (Official docs · read 13 Oct 2026)
  48. Dify docs: Weaviate migration to client v4 and server 1.27+ (Dify 1.9.2) (Official docs · read 13 Oct 2026)
  49. Dify docs: Weaviate server upgrade path (1.27.0 to 1.39.2 in Dify 1.17.1) (Official docs · read 13 Oct 2026)
  50. dify.ai home page (Dify Cloud, LangGenius, Inc.) (Official docs · read 13 Oct 2026)

All self-hosted apps