New AMD EPYC dedicated servers in the Swiss Alps, from $64.99 a month See servers

Pay with
EN

Self-hosted app·Self-hosted AI

Dify on a self-hosted VPS in the Swiss Alps.

Run a Dify self-hosted VPS in the Swiss Alps: 6 vCPU, 8 GB RAM, Docker Compose, secrets, HTTPS and where your prompts actually go.

Runs here
  • Dify
  • PostgreSQL
  • Redis
  • NGINX

ALP1·Swiss Alps

In stock

Recommended for this use case

Cloud VPS · ProductionPro · 6 vCPU · 8 GB RAM$22.99/mo320 GB NVMe · 20 TB transfer · 1 Gbps
  • 1 Gbps port20 TB of transfer a monthIncluded
  • Debian 13preinstalled with the orderIncluded
  • DDoS protection, 1 IPv4VNC console and full rootIncluded
Per month$22.99/mo

Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $206.99 a year, about 25% less

Deploy VPS Pro
  • No KYC
  • Crypto only
  • Swiss jurisdiction

ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto

  • 6 vCPU, 8 GB RAM
  • 320 GB NVMe local storage
  • 20 TB transfer on a 1 Gbps port
  • DDoS protection included
  • Swiss jurisdiction, outside the EU

01/07

Short answer.

Yes. Dify's Community Edition runs on our Cloud VPS Pro plan (6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB of monthly transfer on a 1 Gbps port, $22.99 a month) with Debian 13 and the project's own Docker Compose stack, in our ALP1 facility in the Swiss Alps. The plan is the easy decision. The one that deserves your attention first is the model endpoint, because Dify calls language models over an API and runs none itself. Knowledge bases, conversation logs and provider keys stay on our NVMe under Swiss law, while every prompt, together with the document chunks Dify retrieved for it, travels to whichever endpoint you configure. Choose that endpoint as carefully as you chose the country of the server.

02/07

What Dify is and who runs it.

Dify is an open-source platform for building applications on large language models: a visual editor for workflows and chatflows, knowledge bases with retrieval, agents that call tools, and an HTTP API behind every app you publish. LangGenius, Inc. develops it on GitHub. The current release is 1.18.0, published on 23 October 2026, after 1.16.0 in July and 1.17.0 in August. That pace matters on a self-hosted box, because each release brings database migrations and, now and then, a manual step that bites anyone who upgrades without reading the notes.

The licence is Apache 2.0 with two added conditions that an agency should read before quoting a client. Without written permission from LangGenius you may not use the source to operate a multi-tenant environment, where one tenant means one workspace, and you may not remove or alter the Dify logo and copyright notice in the console or in published web apps. A separate instance per client with the branding intact stays inside the text as written; one instance split into a workspace per client is the case the licence reserves for a commercial agreement. We host servers and do not give legal advice, so if your business model sits near that line, ask LangGenius before you build on it.

The typical self-hoster is a small company that wants its internal documents searchable without handing them to a SaaS, or an agency building document assistants and support bots for clients, often after trying cloud VPS. Questions about Dify's own behaviour get faster answers in the project's GitHub Discussions and Discord than in a hosting ticket.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.

03/07

Requirements and sizing.

Dify documents a floor of 2 CPU cores and 4 GiB of RAM. That figure gets the containers running and leaves little for a team indexing documents at the same time. With its default profiles, the 1.18.0 Compose file runs fifteen long-running containers: the API plus a separate WebSocket API for collaborative editing, a Celery worker and its scheduler, the Next.js frontend, PostgreSQL 15, Redis 6, Weaviate 1.39 as the vector store, the code sandbox, the agent sandbox with its own Squid egress proxy, a second Squid proxy against SSRF, the plugin daemon, the agent backend and Nginx. The worker starts four Celery processes by default, and ingestion is where memory goes: parsing, chunking, embedding calls and Weaviate writes overlap when someone drops a folder of PDFs into a knowledge base.

PlanvCPU / RAM / NVMeTransfer, portPer monthFor Dify
Standard4 / 4 GB / 160 GB15 TB, 1 Gbps$12.99Starts; one person evaluating against a hosted model API
Pro (recommended)6 / 8 GB / 320 GB20 TB, 1 Gbps$22.99A small team in production with hosted model APIs
Power12 / 16 GB / 640 GB40 TB, 2 Gbps$42.99Local embedding or rerank models, the Unstructured parser, heavy parallel indexing

Changing the vector store changes the sizing. OceanBase, one of the bundled alternatives, defaults to a 6 GB memory limit on its own, and the bundled Elasticsearch container is capped at 2 GB; either makes the Pro plan tight. At this size, keep Weaviate.

Only ports 80 and 443 need to face the internet, plus 22 for you. The default Compose file also publishes 5003, the plugin daemon's remote-debugging listener, on every interface, and because Docker writes its own packet-filter rules for published ports, a host firewall such as ufw does not hide it. Step 5 below removes that mapping. Disk is less of a worry: PostgreSQL, Weaviate, uploads, plugin environments and sandbox state all live under docker/volumes/ on the NVMe, and the part that grows without bound, uploaded files, can move to a bucket.

What we cannot offer is a GPU; there is none in our catalogue. Generating tokens on a CPU is limited by memory bandwidth more than by core count, which rules out the EPYC 4004 models among our dedicated servers, with their two DDR5 channels. The Matterhorn (EPYC 9254, twelve channels, 192 GB, $219.99 a month) is the only machine we would consider for CPU inference, and a hosted API will still answer faster.

04/07

How to deploy it with us.

These steps follow the upstream Docker Compose guide for 1.18.0, with the changes we make on every public-facing install. Run them as root.

  1. 01

    1. Order the server and point DNS

    Deploy a Cloud VPS Pro with Debian 13, then create an A record for your Dify hostname pointing at the server's IPv4 before you request a certificate.

  2. 02

    2. Install Docker from Docker's repository

    Dify 1.18.0 requires Docker Compose 2.35.0 or later, so install Docker Engine and the Compose plugin from Docker's own Debian repository rather than depending on the distribution's version.

    bash
    apt-get update && apt-get install -y ca-certificates curl git openssl install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \ https://download.docker.com/linux/debian trixie stable" > /etc/apt/sources.list.d/docker.list apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker compose version # must report 2.35.0 or later
  3. 03

    3. Check that Landlock is active

    Since 1.18.0 the agent sandbox refuses to run any command when the kernel cannot apply Landlock path isolation (Linux 5.13 or later, with Landlock enabled). cat /sys/kernel/security/lsm must list landlock. If it does not, add it to the lsm= parameter on the kernel command line in /etc/default/grub, run update-grub and reboot. Only the new Agent depends on this, including Agent nodes inside workflows; chat apps, ordinary workflows and knowledge bases run without it.

  4. 04

    4. Clone the release and replace the default secrets

    bash
    mkdir -p /opt && cd /opt git clone --branch 1.18.0 --depth 1 https://github.com/langgenius/dify.git cd dify/docker && cp .env.example .env

    The defaults ship with publicly known development credentials. Replace them in docker/.env before the first start; values there take precedence over the per-service files under docker/envs/. Use openssl rand -hex 32 for each value unless a comment says otherwise.

    ini
    # Required: the agent backend and its sandbox restart in a loop without it DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN= # Guards /install until the admin exists; 30 characters max (openssl rand -hex 15) INIT_PASSWORD= DB_PASSWORD= # Also change the password inside CELERY_BROKER_URL if your .env spells it out REDIS_PASSWORD= # These two must hold the same value SANDBOX_API_KEY= CODE_EXECUTION_API_KEY= # The key must also appear in the allowed-keys list WEAVIATE_API_KEY= WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS= # Two different values PLUGIN_DAEMON_KEY= PLUGIN_DIFY_INNER_API_KEY= DIFY_AGENT_API_TOKEN= # Unpadded base64url of 32 bytes: openssl rand 32 | basenc --base64url | tr -d '=' DIFY_AGENT_SERVER_SECRET_KEY=

    Set DB_PASSWORD now: once PostgreSQL has initialised, changing it means changing it inside the database first. Leave SECRET_KEY alone. Dify generates one on first start and stores it with its data, and replacing it later logs everyone out and breaks signed file links.

  5. 05

    5. Stop publishing the plugin-debugging port

    bash
    cat > docker-compose.override.yaml <<'EOF' services: plugin_daemon: ports: !reset [] EOF

    Compose reads the override file automatically. The tempting shortcut, setting EXPOSE_PLUGIN_DEBUGGING_PORT=127.0.0.1:5003, does not work: the API reuses that variable as a bare port number and has rejected host:port values since 1.16.1. If you develop plugins, debug them against a local instance.

  6. 06

    6. Set the public URLs, start, and obtain a certificate

    The certbot profile that ships with Dify obtains Let's Encrypt certificates but schedules no renewals. Add it to the Compose profiles so later restarts keep the container, and set the public URLs. Without CONSOLE_API_URL, file previews fail and session cookies are not marked secure; without CONSOLE_WEB_URL, the links in invitation e-mails are broken.

    ini
    COMPOSE_PROFILES=weaviate,postgresql,collaboration,certbot CONSOLE_API_URL=https://dify.example.com CONSOLE_WEB_URL=https://dify.example.com NEXT_PUBLIC_SOCKET_URL=wss://dify.example.com NGINX_SSL_CERT_FILENAME=fullchain.pem NGINX_SSL_CERT_KEY_FILENAME=privkey.pem NGINX_ENABLE_CERTBOT_CHALLENGE=true CERTBOT_DOMAIN=dify.example.com CERTBOT_EMAIL=ops@example.com
    bash
    docker compose up -d --force-recreate docker compose exec -it certbot /bin/sh /update-cert.sh # now set NGINX_HTTPS_ENABLED=true in .env, then: docker compose up -d --no-deps --force-recreate nginx docker compose ps --all

    Long-running services should show Up or healthy, and the one-time init_permissions task Exited (0). The update script calls certbot renew, which acts only when a certificate is close to expiry, so a weekly cron entry is enough (-T because cron has no terminal):

    bash
    echo '17 4 * * 1 root cd /opt/dify/docker && docker compose exec -T certbot /bin/sh /update-cert.sh && docker compose exec -T nginx nginx -s reload' > /etc/cron.d/dify-cert
  7. 07

    7. Create the administrator and configure mail

    Open https://dify.example.com/install, enter INIT_PASSWORD and create the administrator account. Outbound port 25 is open on every VPS, so Dify can deliver invitations and password resets itself, but mail from a fresh IP without reputation mostly lands in spam. Set MAIL_TYPE=smtp, MAIL_DEFAULT_SEND_FROM, and route through your mail provider on port 587 with SMTP_USE_TLS=true and SMTP_OPPORTUNISTIC_TLS=true.

  8. 08

    8. Optional: keep uploads in object storage

    Our S3-compatible object storage is billed by size with no request fees, and Dify speaks S3 natively. Decide before the first start: with the default key provider, Dify keeps each workspace's private encryption key in the same storage backend as the files, so switching later strands your stored model credentials as well as the uploads.

    ini
    STORAGE_TYPE=s3 S3_ENDPOINT=https://<endpoint shown in your client panel> S3_BUCKET_NAME=dify-files S3_ACCESS_KEY=<access key> S3_SECRET_KEY=<secret key> S3_REGION=<region shown in your client panel> S3_ADDRESS_STYLE=path

    PostgreSQL and Weaviate stay on the VPS's NVMe. Neither database belongs on a bucket, mounted or otherwise.

05/07

Cost.

ItemPer month
Cloud VPS Pro$22.99
Daily backups option (+20 %)$4.60 (theoretical: 20 % of $22.99)
250 GB bucket for uploads$1.99
Total with both options$29.58 (theoretical)

The VPS price covers the 6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB of transfer and the 1 Gbps port. Yearly billing takes roughly 25 % off, which puts the VPS alone at $206.99 for the year, or $17.25 a month (the yearly price divided by twelve). VPS traffic is metered against the included transfer, but 20 TB a month works out to about 667 GB a day (theoretical), and a chat app moves kilobytes per message. The bucket has unlimited traffic in both directions.

Payment is in crypto only (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins), with prices and balances in US dollars, and we accept business customers paying this way. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; a $250 top-up therefore gives $287.50 of balance (theoretical), more than a year of Pro at the yearly rate. The unused paid part of a top-up is refundable within 14 days. The full catalogue is on our pricing page.

06/07

What Swiss hosting covers, and what it does not.

The instance runs in ALP1 and the operator is Hosta AG, a Swiss société anonyme. The revised Federal Act on Data Protection (FADP) has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland still ensures an adequate level of protection, so an EU company can keep personal data in a Dify instance here without additional transfer safeguards. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland.

None of that travels with your prompts. If Dify calls a US model API, you are making a transfer from Switzerland to the US; since 15 September 2024 Switzerland recognises US companies certified under the Swiss-U.S. Data Privacy Framework as adequate, so check your provider's certification. Certification answers the legal question under the FADP and leaves open who can read the data. For documents that must not leave your control, put a model you operate behind Dify. Our page on offshore hosting and jurisdiction explains how we deal with requests from authorities.

07/07

Limits and acceptable use.

You run the software, so securing and patching the instance is yours to do, and a Dify left on its default credentials is an open door. Dify's own release notes say to offer Dify Agent services only to trusted users, because the agent executes shell commands in its sandbox; if you open agents to the public, whatever they do from our IP addresses is your responsibility, as with any other process on your server. Port 25 being open does not make unsolicited bulk mail acceptable, and the licence conditions above are a matter between you and LangGenius.

Public web apps built on a knowledge base can make other people's works available, which Swiss copyright law does not permit without the rights holder's consent. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). To reach us, open a support ticket from the client panel.

Catalogue·Options

Every configuration, every option, every price.

Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.

Six cloud VPS plans in ALP1 · transfer included on every plan

PlanvCPUMemoryNVMeTransferPortPriceDeploy
StarterStaging, dev22 GB80 GB10 TB / month1 Gbps$6.99/moDeploy Starter
StandardSmall apps44 GB160 GB15 TB / month1 Gbps$12.99/moDeploy Standard
PowerHeavy workloads1216 GB640 GB40 TB / month2 Gbps$42.99/moDeploy Power
UltraDatabases1632 GB1000 GB60 TB / month2 Gbps$65.99/moDeploy Ultra
SummitDense hosts3264 GB2000 GB100 TB / month5 Gbps$119.99/moDeploy Summit

Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.

Every plan

  • AMD EPYCon every host
  • Local NVMenot network storage
  • DDoS protectionalways on
  • 1 IPv4 addressmore at $2 each
  • VNC consoleand full root access

Options and upgrades · prices per month

OptionWhat you getPrice
Daily backupsSnapshots of the whole VPS+20%
Extra IPv4Per address, up to 64+$2.00
Priority supportPer VPS+$10.00
Longer billingPay quarterly or yearly−10% / −25%
Dedicated serverWhen a VPS is no longer enough: 10 Gbps, unmetered trafficfrom $64.99

FAQ

Questions people ask first.

Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.

Still unsure?

Tickets go straight to the people who run ALP1.

Contact support
Can I run the model on the same VPS as Dify?

On the Pro plan, a small embedding or rerank model is about the limit, and only if you watch memory during indexing. A chat model of useful size competes with the fifteen Dify containers for the same 8 GB. Move to Power or, better, a separate machine, and point Dify at it through an OpenAI-compatible or Ollama endpoint.

How do I upgrade Dify without losing knowledge bases?

Read the target release's upgrade guide first. Stop the stack with docker compose stop, copy docker/.env, your files under docker/envs/, the override file and docker/volumes/, then git fetch --tags, git checkout <version>, compare .env.example with your .env, and run docker compose pull && docker compose up -d. If you are moving an instance older than 1.17.1 here, upgrade its bundled Weaviate in stages on the old host first, or start fresh and re-index; skipping Weaviate minor versions is unsupported and can break vector search without an error. Our daily backups option is a second line of defence, not a replacement for that pre-upgrade copy.

Does the 20 TB transfer limit matter for a Dify instance?

Rarely. Twenty terabytes a month is about 667 GB a day (theoretical), and chat, retrieval and model API calls exchange small JSON payloads. The traffic that grows is file uploads, and the bucket they can live in has unlimited traffic.

Can we store EU clients' personal data in Dify here?

Yes. The European Commission's review of 15 January 2024 kept Switzerland's adequacy decision in force, so personal data can flow from the EU to Switzerland without additional safeguards. You remain responsible as controller for what goes into the instance and for any model provider you send it to.

Do I need to provide identity documents to order?

No. We operate on a no-KYC basis: an email address is enough to open an account and deploy the VPS, and payment is in crypto.

Sources

Every fact on this page, with its source

Consulted 5 Nov 2026 unless noted.

ALP1·Swiss Alps

Your server in the Alps, ready when you are.

Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.