Cloud & Hosting

How to Set Up Dokploy on a VPS in 2026

How to set up Dokploy on a VPS in 2026: server requirements, the one-command install, securing the dashboard with a domain and HTTPS, deploying your first app, and when to pick Dokploy over Coolify.

Waqas Ahmed Waseer
Waqas Ahmed Waseer Nov 25, 2026 9 min read
How to Set Up Dokploy on a VPS in 2026

Dokploy installs on a fresh VPS in about five minutes with one command, curl -sSL https://dokploy.com/install.sh | sh, and gives you a self-hosted Vercel-style dashboard for deploying apps, databases, and Docker Compose stacks without paying per-seat PaaS fees. This guide walks the full path: sizing the server, running the installer, locking down the dashboard with a real domain and HTTPS, and shipping your first app. It also covers the one decision most tutorials skip, whether Dokploy or Coolify is the right fit before you commit a server to either.

Dokploy is open source and free to self-host; your only cost is the VPS it runs on. The latest release at the time of writing is v0.31.4, published 17 November 2026, and it bundles Traefik, PostgreSQL, and Redis under the hood so you never wire those up by hand.

What is Dokploy and when should you use it?

Dokploy is a self-hosted platform-as-a-service: a web dashboard that sits on your own server and automates the boring parts of deployment, building images, wiring up a reverse proxy, provisioning databases, issuing TLS certificates, and scheduling backups. It targets the same job as Vercel, Netlify, or Render, but the apps run on infrastructure you control, so there are no egress bills, no cold starts, and no per-seat pricing. It deploys Node.js, PHP, Python, Go, and Ruby apps, supports MySQL, PostgreSQL, MongoDB, MariaDB, and Redis as managed databases, and reads Docker Compose files natively for multi-container stacks. Reach for it when you have a VPS and want push-to-deploy convenience without renting a managed platform, a solo developer running side projects, or a small team that wants one dashboard instead of hand-written docker run commands.

Before you start: server requirements

Dokploy is light, but it is not a $3 nano-VPS tool. The installer brings Docker, Traefik, a Postgres instance, and Redis, so give it headroom. The official installation docs list the minimums below.

RequirementMinimumNotes
RAM2 GB4 GB is more comfortable once you deploy apps alongside it
Disk30 GBImages, volumes, and build cache add up fast
OSA current Linux server distributionUbuntu LTS or Debian is the safest pick; a clean install is strongly preferred
Open ports80, 443, 300080/443 for your apps, 3000 for the setup dashboard
DockerInstalled automaticallyThe script also initializes Docker Swarm

Use a brand-new server. Dokploy initializes Docker Swarm and takes over Traefik, so running it next to an existing Docker setup is the fastest way to a port conflict.

Step 1: Prepare and secure the VPS

Spin up a fresh Ubuntu 24.04 or Debian 12 instance from any provider, then do the basics before installing anything. Log in as root, create a non-root sudo user, add your SSH key, and disable password login. If you have not hardened a new box before, our secure-first-hour VPS checklist covers the exact commands. One Dokploy-specific note: do not pre-install Docker or a firewall rule that blocks ports 80, 443, and 3000. The installer manages Docker itself, and Dokploy needs those three ports reachable. If you run ufw, allow them explicitly (sudo ufw allow 80,443,3000/tcp) before you enable the firewall, or you will lock yourself out of the dashboard.

Step 2: Install Dokploy (one command)

With a clean server ready, the whole install is a single line run as root:

curl -sSL https://dokploy.com/install.sh | sh

The script detects your OS, installs Docker if it is missing, initializes a single-node Docker Swarm, pulls Traefik, Postgres, and Redis, and starts the Dokploy dashboard. It finishes in a couple of minutes on a 2-core VPS and prints the URL to open. Piping a remote script to sh always deserves a glance first. If you prefer, download install.sh, read it, then run it. To pin a specific build instead of latest, grab the release-tagged install.sh from the GitHub releases page; for the bleeding edge, export DOKPLOY_VERSION=canary before running the command.

Step 3: Create your admin account and first project

Once the installer finishes, open http://YOUR_SERVER_IP:3000 in a browser. The first visit shows a registration screen. The account you create there becomes the admin, so use a strong, unique password and store it in a manager. There is no second "forgot password" email flow on a fresh self-hosted box, so losing this credential means reinstalling. Inside the dashboard, create a Project (a logical grouping, like "production") and then add a Service to it. A service can be an application built from a Git repo or Dockerfile, a managed database, or a Docker Compose stack. This is also the moment to connect a Git provider (GitHub, GitLab, or Gitea) under Settings so Dokploy can pull your code and auto-deploy on push.

Step 4: Point a domain and get HTTPS

Exposing the dashboard on a raw IP:3000 is fine for the first five minutes and a liability after that. Point an A record, say deploy.yourdomain.com, at the server's IP, wait for DNS to propagate, then add that domain to the Dokploy web-server settings. Dokploy uses Traefik to request a free Let's Encrypt certificate automatically, so HTTPS is live within seconds of the DNS resolving. The official docs are blunt about the order of operations: get the domain and HTTPS working before you disable the IP:3000 access, or you can lock yourself out of the panel entirely. Each app you deploy gets the same treatment: assign it a domain in its service settings and Traefik handles the certificate and routing without any manual Nginx or Caddy config. If you want to understand what Traefik is doing here, it plays the same role as the setups in our reverse-proxy guide.

Step 5: Deploy your first app

Create an application service, connect it to a Git repository, and pick a build type. Dokploy can build with Nixpacks (zero-config, auto-detects your stack), a Dockerfile, or Heroku-style buildpacks. Set your environment variables in the service's Environment tab, assign a domain, and hit Deploy. Dokploy clones the repo, builds the image, starts the container behind Traefik, and streams the build logs live. Turn on the auto-deploy webhook and every git push to your chosen branch triggers a rebuild. That is the push-to-deploy loop that makes managed platforms feel effortless, now running on your own hardware. For Compose-based projects, paste or point to your docker-compose.yml and Dokploy orchestrates the whole stack. Our general self-hosting apps on a VPS guide is a useful companion if you are new to running production containers.

Keeping Dokploy updated and backed up

Updates are a one-liner. Run curl -sSL https://dokploy.com/install.sh | sh -s update to pull the latest version, or use the in-dashboard update button, which shows when a new release is available. Because Dokploy stores its own state in Postgres and your app data in Docker volumes, a real backup plan has to cover both: the Dokploy database and each service's volumes. Dokploy can push database backups to external S3-compatible storage on a schedule, You configure that per database under its Backups tab. For the volumes and the host itself, treat this like any other production server and follow a 3-2-1 backup routine so a bad deploy or a dead disk is a restore, not a disaster.

Dokploy vs Coolify: which should you pick?

Dokploy and Coolify are the two serious open-source PaaS options in 2026, and they install almost identically, so the choice comes down to architecture. Dokploy's defining trait is native Docker Swarm integration. It turns multiple servers into one cluster with automatic load distribution and container restarts out of the box, and it uses Traefik as its only reverse proxy. Coolify takes the opposite tack: it favors adding servers with a single SSH command and central management, and offers a choice of Traefik or Caddy as the reverse proxy. Pick Dokploy if you value built-in clustering and a single opinionated stack; pick Coolify if you manage many separate servers or want proxy flexibility. If Coolify sounds closer to your needs, we have a dedicated Coolify deployment guide.

DokployCoolify
ClusteringNative Docker Swarm, automaticSupported, more manual setup
Reverse proxyTraefik onlyTraefik or Caddy (choice)
Multi-serverOne cluster, load distributedMany servers, one control panel
Best forBuilt-in clustering, one clean stackAgencies, many isolated servers
InstallOne commandOne command

FAQ

Is Dokploy free? Yes. Dokploy is open source and free to self-host. You only pay for the VPS it runs on. There is no per-seat or per-deploy fee, which is the main reason people move to it from Vercel or Render.

What are the minimum requirements to run Dokploy? At least 2 GB of RAM, 30 GB of disk, and free ports 80, 443, and 3000, on a clean Linux server (Ubuntu LTS or Debian is the safest choice). The installer adds Docker automatically. Plan for 4 GB of RAM once you deploy apps alongside the panel.

How do I update Dokploy? Run curl -sSL https://dokploy.com/install.sh | sh -s update, or use the update button in the dashboard when it flags a new release. Your projects and data persist across updates because they live in Postgres and Docker volumes.

Is Dokploy better than Coolify? Neither is strictly better. Dokploy ships native Docker Swarm clustering and a single Traefik-based stack; Coolify emphasizes managing many servers centrally and lets you choose Traefik or Caddy. Choose based on whether you want built-in clustering (Dokploy) or multi-server flexibility (Coolify).

Can I run Dokploy on the same server as other Docker apps? It is not recommended. Dokploy initializes Docker Swarm and takes control of Traefik and ports 80/443, which commonly conflicts with an existing Docker setup. Use a dedicated, freshly provisioned server.

Sources

Some links may earn us a commission at no extra cost to you.

Waqas Ahmed Waseer

Waqas Ahmed Waseer

Waqas Ahmed Waseer is a developer and automation builder with 8+ years shipping production systems used by 100k+ people. He builds custom multi-tenant SaaS, AI automation (n8n, LLM workflows, WhatsApp bots) and hosting infrastructure (WHM/cPanel, CloudLinux) — and is the maker of WaSphere, FlowMaticX, and the WaseerHost hosting brand. 100+ projects delivered for SMBs, agencies and funded startups.

Related

More in Cloud & Hosting

View all →

Discussion · 0

Be kind. Comments are public.

    Newsletter · Monday edition

    The Monday brief.

    One email every Monday morning. The week ahead in AI, startups, hosting and dev tools — no fluff, no sponsored bait.

    Free. Unsubscribe in one click.