Docker Compose is a great way to run a stack on a laptop. It is a frustrating way to deploy one. You end up ssh-ing into the server to git pull, hand-editing YAML, remembering to run docker compose up -d after each change, and manually configuring a reverse proxy every time you add a service.
Dokploy is an open-source, self-hosted PaaS that fixes exactly that layer. It gives you a web dashboard where you connect a Git repository, pick a build type, click deploy, and get automatic HTTPS — the Heroku/Vercel workflow, except it runs on your own VPS and you never hand over a credit card. This guide covers the install, a realistic first deployment, the reverse-proxy plumbing, and the operational bits most setup videos skip.
What Dokploy actually is
Dokploy is a control plane, not an application server. Underneath, it uses Docker, Docker Compose and Traefik. When you create an application in its UI, it generates a compose file for you, builds your project with Nixpacks or a Dockerfile, starts the container, and asks Traefik to route your domain to it with a TLS certificate.
That architecture matters because it means nothing is locked in. Every “app” Dokploy manages is still a normal container. If you abandon Dokploy tomorrow, docker ps still shows your workloads and you can rebuild them by hand.
The features that actually earn it a place in a homelab:
- Git integrations — GitHub, GitLab, Bitbucket, Gitea, or a plain Git URL, with automatic deploy on push.
- One-click databases — Postgres, MySQL, MariaDB, MongoDB, Redis, and others with persistent volumes.
- Automatic TLS — Traefik issues Let’s Encrypt certificates per domain.
- Compose deployments — paste your existing
docker-compose.ymland get domain routing plus certs for free, which is the fastest migration path. - Environment management — per-environment variables in the UI instead of a
.envyou always forget to copy to the server. - Multi-node — attach additional servers to a single dashboard when one VPS is not enough.
Prerequisites
- A VPS or homelab server running a modern Linux distribution, 2 GB RAM minimum (4 GB if you plan to run databases).
- Ports 80 and 443 free — Dokploy installs Traefik and will fail or conflict if something already owns them. If you already run Caddy as a reverse proxy, stop it first or use a second host.
- A domain name with an
Arecord pointing at the server. You cannot get certificates without one. - Root or sudo access.
Step 1: Install
Dokploy ships a one-line installer:
curl -sSL https://dokploy.com/install.sh | sh
It installs Docker if missing, pulls the Dokploy image, starts its Postgres, and brings up Traefik. Expect two to five minutes. When it finishes, it prints an initial admin URL on port 3000 of the server.
Before you open it, two preliminary steps are worth doing on any fresh VPS:
# Keep the system patched
apt update && apt upgrade -y
# If ufw is enabled, allow HTTP/HTTPS and the admin port
ufw allow 80,443,3000/tcp
Then visit http://your-server-ip:3000, create the admin account immediately — the first-run page is open to whoever reaches it first, which is a genuine race condition on a public IP — and set a strong password.
Step 2: Point a domain at the dashboard
Open Settings → Server → and set a domain for the Dokploy panel itself, e.g. panel.example.com. Traefik will request a certificate and the dashboard then lives on HTTPS at that hostname.
Once that works, close port 3000 to the outside:
ufw delete allow 3000/tcp
Leaving the admin panel on PLAIN HTTP port 3000 is the most common mistake in every Dokploy tutorial. Do not skip this step.
Step 3: Deploy something real
Three deployment modes exist. Choose by what you already have.
A. Git application (Nixpacks). Create project → application → connect the repository → pick a branch. Nixpacks detects Node, Python, Go and so on and builds without a Dockerfile. Set the port your app listens on (e.g. 3000), add a domain, click Deploy.
B. Dockerfile. Same as above but set build type to Dockerfile. More control, reproducible, what you want for anything beyond a toy project.
C. Docker Compose (the migration path). Create a compose service, paste your existing YAML, and add domains per service. This is the fastest way to move a working stack off hand-managed compose. A minimal example:
services:
app:
image: ghcr.io/example/app:latest
environment:
- DATABASE_URL=postgres://user:pass@db:5432/app
depends_on:
- db
db:
image: postgres:16-alpine
environment:
- POSTGRES_PASSWORD=change-me
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data:
Deploy it, attach app.example.com to the app service with container port 3000, and Traefik handles TLS and routing. No Caddyfile, no certbot.
Step 4: Automatic deploys from Git
In the application’s Deployment settings, enable automatic deployment and copy the webhook URL into GitHub → Settings → Webhooks. Add the secret Dokploy shows you, select “push” events, and every push to the tracked branch triggers a rebuild.
The practical workflow becomes: git push locally, watch the build log in the dashboard, done. No SSH. That single change is why people tolerate the extra moving part.
Step 5: Understand the Traefik layer
Dokploy’s routing is Traefik with labels generated per service. Two consequences:
- Domains bind to container ports, not host ports. When you add a domain you specify the internal port your container listens on.
- Anything you add outside Dokploy must be reachable on the Docker network Traefik watches (
dokploy-network) to get routed. If you add a manual container, attach it:docker network connect dokploy-network my-container.
Conflicts are the usual failure: a service already bound to 80/443 prevents Traefik from starting. Check with ss -tlnp | grep -E ':80|:443' before installing.
Backups: the part that matters
Dokploy stores its state in Postgres plus a set of Docker volumes — application source mounts, database data, and generated config. Two layers of backup are worth having:
# 1. Application data: dump databases properly
docker exec -t dokploy-postgres pg_dumpall -c -U postgres > /backup/dokploy-$(date +%F).sql
# 2. Volume snapshot for uploaded files and app data
docker run --rm -v dokploy:/data -v /backup:/backup alpine \
tar czf /backup/dokploy-vol-$(date +%F).tar.gz -C /data .
Copy both off the machine nightly. Dokploy’s UI has a built-in backup destination feature for S3-compatible storage, which is the cleaner option if you already have a bucket — but verify a restore before trusting it. An untested backup is a rumour.
Dokploy vs the alternatives
- vs raw Docker Compose: Dokploy adds a UI, TLS, and Git deploys; you give up the simplicity of a file you fully control. For one or two services on one host, compose alone is honest and fine.
- vs Coolify: both are self-hosted PaaS with Git deploys and one-click databases. Coolify has a larger community and more integrations; Dokploy’s interface is cleaner and its Traefik-first design is simpler to reason about. Either is a defensible choice — pick the one whose docs you can actually follow.
- vs CapRover: CapRover is older and stable but less polished; Dokploy feels more current.
- vs a managed PaaS: you pay in maintenance and server administration instead of money. For a homelab that trade is usually excellent.
Common problems
Certificate not issuing. DNS has not propagated, or port 80 is blocked. Let’s Encrypt needs HTTP reachable for the challenge. Check dig +short app.example.com returns your server IP.
Build succeeds, site 502s. The domain’s container port is wrong, or the app binds to 127.0.0.1 inside the container instead of 0.0.0.0. That second one catches almost everybody.
Deploy hangs on “cloning”. Private repo without a deploy key, or the SSH key was added to the wrong project. Regenerate and re-add.
Out of memory during build. Nixpacks builds for Node projects can spike. Add swap (fallocate -l 2G /swapfile) on 2 GB boxes.
Panel unreachable after reboot. Some providers do not restart Docker on boot; systemctl enable docker and confirm the Dokploy stack has restart: unless-stopped.
Final verdict
Dokploy is the missing middle layer between “I edit YAML over SSH” and “I pay a platform to host my side project”. It installs in minutes, keeps everything in containers you still own, and turns a push into a deployment.
If your homelab has grown past three services, or if you maintain a VPS for side projects and are tired of manual git pull, install it on a spare host and migrate one non-critical service first. Keep Tailscale for admin access, follow the homelab security rules, and do not expose the panel on plain HTTP — that is the one mistake that undoes the convenience.