Dify provides tools for building applications around language models. The self-hosted platform includes several supporting services; the model itself runs through a separately chosen provider or inference runtime.
Requirements last checked against the project's documentation.
A sensible first server for Dify is 2 vCPU, 4 GB RAM and 40 GB of storage.
The cheapest listed plan that fits is OVHcloud VPS-1 (US) at $4.54/month.
The official Linux Docker Compose path lists a minimum of 2 CPU cores and 4 GiB RAM for the host. This is a documented minimum, not a production sizing guarantee.
Linux deployment requires Docker 19.03+ and Docker Compose 2.24.0+. The macOS Docker Desktop instructions call for a Docker VM with at least 2 vCPUs and 8 GiB memory.
Recommended
Planning guidance
Start with 2 vCPU, 4 GB RAM and 40 GB storage.Resize after watching real memory and CPU use under your own traffic.
The minimum comes from the official quick start. The Compose stack runs multiple application and supporting containers; production capacity depends on usage, enabled components, retained files and whether inference is local or remote. Dify itself does not establish that a host can run a chosen model.
Where to start
A sensible first server for Dify
vCPU
2
RAM
4 GB
Disk
40 GB
Dify's quick start lists 2 CPU cores and 4 GB RAM minimum for its Docker Compose stack. Disk is our estimate.
One cheapest plan per provider, based on each provider's standard list price. Check the plan page for introductory and renewal pricing before you buy.
Deploy with
Supported paths
Docker Compose on Linux
Docker Compose through Docker Desktop on macOS or Windows with WSL 2
The host must provide
Runtime
Container runtime
Docker 19.03+ for Linux, with Docker Compose 2.24.0+
Supporting services
The official Compose stack includes PostgreSQL, Redis, Weaviate, sandbox, proxy, worker and Dify application containers
Model endpoint
Choose a model provider or separately operated inference backend; sizing for that backend is outside the Dify host minimum
Storage
Persistent data
The Compose deployment uses persistent volumes for databases and application data. The official quick start does not state a universal disk minimum. Plan storage from retained uploads, knowledge-base documents, database growth, logs and backups; do not treat the 4 GiB RAM minimum as a disk recommendation.
Step by step
Plan a Dify self-hosted deployment
Check the baseline host
For the documented Linux Compose path, confirm at least 2 CPU cores and 4 GiB RAM, then install Docker and Compose at the documented versions. Treat this as a minimum starting point only.
The quick start starts multiple core and supporting containers. Review the supplied environment configuration and decide which storage, database, and service settings your deployment needs.
Connect Dify to a model endpoint and size that endpoint independently. The minimum Dify host requirements do not prove that local inference will fit or perform well.