No description
  • Shell 63.5%
  • Dockerfile 36.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-03 18:07:37 +00:00
.gitignore upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
build-stats.md 2.0.45 : forum change request 132355 2026-11-03 18:07:37 +00:00
CHANGELOG.md 2.0.45 : forum change request 132355 2026-11-03 18:07:37 +00:00
CloudronManifest.json 2.0.45 : forum change request 132355 2026-11-03 18:07:37 +00:00
CloudronVersions.json 2.0.45 : forum change request 132355 2026-11-03 18:07:37 +00:00
DESCRIPTION.md upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
dify-logo.png project v2.0.18 upstream Dify v1.17.0 with Agent V2 2026-08-30 22:12:09 +01:00
dify-screenshot.png project v2.0.18 upstream Dify v1.17.0 with Agent V2 2026-08-30 22:12:09 +01:00
Dockerfile upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
LICENSE Restore repo and update package to Dify 1.14.2 2026-06-20 22:10:07 +01:00
logo.png Restore repo and update package to Dify 1.14.2 2026-06-20 22:10:07 +01:00
nginx-main.conf Restore repo and update package to Dify 1.14.2 2026-06-20 22:10:07 +01:00
nginx.conf upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
POSTINSTALL.md upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
README.md upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
start.sh 2.0.45 : forum change request 132355 2026-11-03 18:07:37 +00:00
supervisord.conf upstream 1.18.0 + latest base image (cve resolved) 2026-10-23 13:41:23 +01:00
version.md 2.0.45 : forum change request 132355 2026-11-03 18:07:37 +00:00

Dify for Cloudron

This is a Cloudron package for Dify, an open-source LLM app development platform.

Architecture

This package runs multiple Dify services within a single container using supervisord:

  • API Server: Python/Flask (Port 5001, serves REST + collaboration socket.io)
  • Web Frontend: Next.js (Port 3000)
  • Worker: Celery worker for background tasks
  • Beat: Celery scheduler
  • Sandbox: Go-based code execution service (Port 8153)
  • Plugin Daemon: Go-based plugin manager (Port 5002)
  • Agent Backend: Agent V2 run server (Port 5050)
  • Agent Local Sandbox: shellctl sandbox for Agent V2 code execution (Port 5004)
  • Nginx: Reverse proxy to route traffic to the web frontend and API

Version

  • Packaged upstream: Dify 1.18.0
  • Sandbox runtime: langgenius/dify-sandbox 0.2.15
  • Plugin daemon: 0.6.10
  • Agent backend / local sandbox: 1.18.0
  • Runtime: Python 3.13 (cloudron/python-base:3.13) with Node.js 24

Data Persistence

  • Application code is read-only in /app/code.
  • All persistent data is stored in /app/data.
  • Configuration files are generated in /app/data/config and /app/data/api-env.
  • Uploaded files are in /app/data/storage.
  • Plugin data is in /app/data/plugin_storage.
  • Sandbox runtime data is in /app/data/sandbox.

Development

Installation

This is a Community App which you can install through the Cloudron web interface.

Environment Variables

The start.sh script automatically generates the .env configuration for Dify based on Cloudron's environment variables (PostgreSQL, Redis, etc.).

Features

  • Chat apps, workflows, agents, datasets, and knowledge-base features work.
  • Plugin marketplace is enabled through the bundled plugin daemon.
  • Code nodes work through the packaged sandbox service.
  • Playwright support is included for browser automation tasks.
  • Agent V2 is enabled with the local shellctl sandbox backend.
  • Real-time workflow collaboration (socket.io) is enabled.

Notes

  • Dify Code nodes pass inputs to main() by variable name. If a workflow input is named test, the Python function must accept test as a parameter.
  • The sandbox process runs as root inside the container because upstream Dify sandbox requires privileged setup steps before applying its own isolation model.
  • Upstream 1.15.0+ requires a plugin auto-upgrade backfill after DB migrations; this package runs it automatically during startup.
  • Upstream 1.18.0 requires Python 3.13; the API, Agent Backend and sandbox runtimes all use it.
  • Agent V2 local sandbox state lives in /app/data/agent-sandbox (home snapshots and workspace).

Key files:

  • start.sh: Entrypoint script that sets up environment and permissions.
  • supervisord.conf: Process manager configuration.
  • nginx.conf: Nginx configuration for routing requests.
  • Dockerfile: Multi-stage build definition.

License

This package is licensed under the MIT License. Dify itself is licensed under the modified version of the Apache 2.0 License.