Application hosting

Hosting Dify

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.

Min vCPU
2
Min memory
4 GiB

Understand the setup

Find the software and services needed to run the application.

See requirements

Budget your resources

Plan memory, storage and CPU for the way you will use it.

Open resource planner

Build your shortlist

Compare plans for the starting size, then review the provider and billing terms.

See plans

Must have

Installation requirements

  • 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.
  • Use the resource planner to size for your user count.

Minimum installation resources

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.

Dify self-hosted install · Size it for your workload

Our shortlist

Cheapest plans that meet this size

  1. OVHcloud Lowest price

    OVHcloud VPS-1 (US)

    • 2 vCPU
    • 4 GB RAM
    • 40 GB NVMe SSD
    $4.54/mo list price
  2. Hivelocity

    Hivelocity pro.sm.amd

    • 2 vCPU
    • 4 GB RAM
    • 40 GB NVMe SSD
    $10.00/mo list price
  3. Hostinger

    Hostinger KVM 2 VPS

    • 2 vCPU
    • 8 GB RAM
    • 100 GB NVMe SSD
    $14.99/mo list price
  4. DreamHost

    Stack 4

    • 2 vCPU
    • 4 GB RAM
    • 75 GB NVMe SSD
    $15.99/mo list price
  5. Liquid Web

    Self-managed VPS — 4 GB

    • 2 vCPU
    • 4 GB RAM
    • 80 GB SSD
    $17.00/mo list price
  6. Namecheap

    Quasar

    • 4 vCPU
    • 6 GB RAM
    • 120 GB SSD RAID 10
    $18.88/mo list price
  7. Hostwinds

    Unmanaged Linux VPS 4 GB

    • 2 vCPU
    • 4 GB RAM
    • 75 GB SSD
    $18.99/mo list price
  8. Vultr

    Vultr Cloud Compute · 2 vCPU / 4 GB

    • 2 vCPU
    • 4 GB RAM
    • 80 GB SSD
    $20.00/mo list price

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

  1. 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.

    Official instructions
  2. Review the Compose stack

    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.

    Official instructions
  3. Choose the inference path

    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.

    Official instructions

Security

Before you go public

  • Set deployment secrets and provider credentials through protected environment configuration; do not commit populated secrets.
  • Review the official SSRF proxy and sandbox components before exposing the installation publicly.
  • Back up persistent database and uploaded-file volumes, and restrict access to the administration and installation routes.

Cost

Beyond the server price

  • Dify’s installation minimum is only a starting point. Model calls, document processing and concurrent workflows add to the hosting budget.
  • Budget separately for the Dify host, persistent storage, backups, and any paid external model API or inference hardware.
  • Budget for the complete Dify stack, including its databases, queues and storage, rather than the web container alone.

Want the full monthly bill? Use the hosting cost calculator. Add storage, backups and other costs to your estimate.