Install Dokploy Hetzner Ubuntu: A Verified Setup Runbook
Install Dokploy on a Hetzner Ubuntu VPS with ordered preflight checks, secure access, DNS, verification steps, and recovery advice for common failures.
To install Dokploy on a fresh Hetzner Ubuntu VPS, provision a supported x86 server. Verify SSH and firewall access. Then use the supported Dokploy installation method and test Docker, Dokploy services, DNS, the proxy, and the dashboard. Use Ubuntu 24.04 LTS, 2 GB RAM, 30 GB storage, root or sudo access, SSH keys, and a domain or subdomain. Check Hetzner and Dokploy documentation before provisioning because versions, availability, installer behavior, and server choices can change.
The shortest safe path to a working Dokploy dashboard
Use this checklist to confirm that Dokploy is ready. A successful installer does not prove that DNS, the proxy, TLS, or the first login works.
| Gate | What must be true | Evidence |
|---|---|---|
| Host | Fresh Hetzner x86 VPS, Ubuntu 24.04 LTS, enough RAM and storage | Hetzner Console and lsb_release -a |
| Access | SSH key works in a second terminal | A new SSH session opens |
| Firewall | SSH remains reachable and required web ports are allowed | Remote connection and port test succeed |
| Install | The supported Dokploy installer finishes without an error | Installer completion output |
| Services | Docker and Dokploy services are running or healthy | docker ps and service inspection |
| DNS | Your hostname resolves to the VPS public IP | dig +short or getent ahostsv4 |
| Proxy | The dashboard responds through its HTTP or HTTPS entry point | Browser or curl response |
| Completion | First login works and recovery details are recorded | Dashboard opens and credentials are stored safely |
A domain may not be needed for every local check. That depends on whether the installed Dokploy release exposes a dashboard by IP and port. A domain remains the practical route to a usable, secured dashboard.
Port numbers, service names, and proxy behavior can change between releases. Use the installer output and supported Dokploy documentation instead of copying an old port list.
Prepare the Hetzner server and fresh Ubuntu host
Start with a genuinely fresh server. Existing Docker packages, reverse proxies, or old firewall rules can interfere with installation. They can also make diagnosis harder. The retrieved Hetzner guidance lists an x86 server, 2 GB RAM, 30 GB storage, Ubuntu 24.04 LTS, root access, a ready domain, and SSH access with key authentication strongly recommended. It gives CX23 and CPX22 as example instance types. Check current availability and specifications in the Hetzner Console.
Before connecting, have these details ready:
- The Hetzner server’s public IPv4 address.
- An SSH key added during provisioning, or another confirmed administrator access method.
- A domain or subdomain, such as dokploy.example.com.
- Access to the DNS provider for that domain.
- The server’s root or sudo credentials.
Do not install another Docker platform, Caddy, Traefik, Nginx, or Apache before Dokploy. Keep the first SSH session open while testing access and changing firewall rules.
Connect from your computer:
ssh root@SERVER_PUBLIC_IPIf you use a sudo-enabled account, connect with that account. Open a root shell only when needed:
sudo -iThe Dokploy installation script requires root privileges.
Check the operating system, architecture, memory, disk space, and listening ports:
lsb_release -a
uname -m
free -h
df -h /
ss -tulpnYou should see Ubuntu 24.04 LTS and an x86 architecture such as x86_64. You should also see adequate free memory and disk space. No unexpected service should claim the web ports. The retrieved Hetzner guidance says Arm64 is untested and not recommended for this setup.
Before enabling UFW, open a second terminal. Test a new SSH login there. If it fails, fix the SSH key, username, or server access first.
If UFW is already active, inspect it instead of replacing its rules:
ufw status verboseDo not enable UFW until SSH is allowed and a second terminal connects successfully. Keep the original session open until that test passes.
If you use the standard SSH port, allow SSH and the web ports before enabling UFW:
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw status numbered
ufw enableIf SSH uses another port, allow that port instead of OpenSSH. Also inspect any Hetzner Cloud firewall attached to the server. Either firewall layer can block traffic. Reconnect from the second terminal after enabling UFW. If it fails, use the original session to correct the rule.
Install Dokploy using the supported method
Use the supported Dokploy installation method on a fresh Ubuntu host. The exact script URL and installer behavior are controlled by the release. Open Dokploy’s installation page immediately before running the installer. Stop if it shows a different command.
- Confirm that you are root and that no unrelated service uses a required port.
id
ss -tulpnThe first command should show uid=0(root). If a required port is occupied, identify the owning process before continuing.
- Run the installer shown on the Dokploy installation page.
curl -sSL https://dokploy.com/install.sh | shThe installer should report progress and finish with an access or completion message. Output, service names, and version numbers vary by release. Record the output instead of relying on an older example.
Piping a remote script to sh gives that script root access. If the Dokploy page provides a download-and-review method, use it instead. Stop on a shell error, package error, failed Docker operation, or message that a service could not start.
- Check Docker and Dokploy services before opening the dashboard.
docker version
docker ps --all
docker service lsDocker should answer successfully. Dokploy-related containers or Swarm services should appear. A container in Exited state or a service with zero running replicas is a stop condition. Inspect logs before retrying the installer.
- If installation stops, preserve the output. Inspect the affected service instead of repeatedly rerunning the script.
docker ps --all
docker service ls
docker service ps SERVICE_NAME
docker service logs SERVICE_NAME --tail 100Replace SERVICE_NAME with a name shown by docker service ls. If the installed release specifies another inspection command, use that command.
Verify Dokploy, connect DNS, and secure the dashboard
Verify each layer separately before using the dashboard. Check listening ports, firewall access, DNS resolution, proxy routing, TLS, and Dokploy service health. This order helps you identify the failing layer without changing several settings at once.
- Identify the ports that Dokploy actually published.
ss -tulpn
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'Do not assume that an older tutorial’s port is still correct. Use the installer output and supported Dokploy documentation to identify the dashboard and proxy ports. If a required port is occupied, identify its owner before stopping anything.
sudo ss -ltnp
sudo lsof -iTCP -sTCP:LISTEN -n -P- Create an A record for the dashboard hostname. For example, dokploy.example.com should point to the VPS public IPv4 address. The retrieved Hetzner material describes either a root-domain A record or a subdomain A record. It gives automatic TTL or the provider’s normal value.
- Test DNS from a machine outside the server.
dig +short dokploy.example.com
getent ahostsv4 dokploy.example.comThe returned address should match the VPS public IPv4 address. If it does not, correct the DNS record or wait for provider caches to update. Test the server IP separately so DNS problems are not mistaken for Dokploy failures.
- Open the dashboard at the address and port reported by the installer. If the proxy is configured for the hostname, use the hostname instead of the raw IP. Complete the first-login flow and set a strong administrator password.
- Configure the custom domain and TLS through the Dokploy dashboard workflow for your release. Proxy components and configuration can vary. Follow version-matched Dokploy instructions instead of hard-coding a proxy configuration. Automatic certificate issuance also depends on correct DNS and inbound HTTP or HTTPS access.
- Recheck service health after login.
docker service ls
docker ps --allBefore deploying an application, record the Dokploy version shown in the dashboard, hostname, DNS provider, server IP, firewall rules, storage location, administrator recovery details, and the Docker volume or backup procedure documented for that release. Do not store passwords in shell history or the application repository.
When installation or first access fails
Use the symptom to choose the next check. Change one layer at a time. Save logs and service details before attempting a reinstall or rollback.
| Symptom | Check first | Safe next action |
|---|---|---|
| Installer exits with an error | Final installer output, Docker status, disk space, and occupied ports | Save the error, inspect services and logs, then follow Dokploy recovery steps |
| A port is already in use | ss -tulpn and lsof | Stop or reconfigure only the identified unrelated service; do not kill an unknown process |
| SSH works but the dashboard does not | Listening ports, UFW, and any Hetzner Cloud firewall | Allow only the documented Dokploy web ports and test again |
| IP works but hostname fails | dig or getent ahostsv4 from an external machine | Correct the A record and wait for DNS caches to update |
| HTTP reaches the server but proxy routing fails | Dokploy service state and proxy logs | Check the hostname configured in Dokploy and inspect proxy service logs |
| HTTPS certificate fails | DNS, port 80 or 443 access, hostname spelling, and certificate status | Fix DNS and firewall access before retrying certificate issuance |
| A service is running but the dashboard is incomplete | Container status, service replicas, and recent logs | Treat the installation as partial and resolve the unhealthy component before deploying |
For a service-specific investigation, first list the names and states:
docker service ls
docker ps --allThen inspect the named service:
docker service ps SERVICE_NAME
docker service logs SERVICE_NAME --tail 100If you need to roll back, do not delete Docker volumes or reinstall blindly. Capture the logs, service list, configuration, and generated credentials first. A reinstall can remove useful failure evidence and may affect deployed data.
Keep a recovery note with the Hetzner server ID and IP, Ubuntu version, SSH key owner, firewall rules, Dokploy hostname, DNS provider, Dokploy version, proxy and service names, volume locations, administrator recovery method, and last known-good backup. Dokploy stores application data in Docker volumes. Identify how those volumes and database data will be backed up before the first production deployment.
Conclusion
The installation is ready for a first application only after every access layer passes. SSH must still work, and Docker and Dokploy services must be healthy. Required ports must be reachable, the hostname must resolve to the VPS, the proxy must respond, TLS must be configured as intended, and dashboard login must succeed. Record the configuration and backup procedure before deploying data-bearing workloads.
Frequently Asked Questions
Can I install Dokploy on an existing Ubuntu server?
A fresh host is safer because old Docker packages, reverse proxies, firewall rules, and occupied ports can interfere with installation. If the server already runs workloads, back them up, inventory services and ports, and confirm the Dokploy requirements before changing anything. Treat a partial installation as a problem to investigate, not a harmless state.
Why does the server IP work but my Dokploy domain does not?
Separate DNS from the dashboard first. Run dig +short your-hostname or getent ahostsv4 your-hostname from outside the server. Compare the result with the VPS public IP. If they differ, correct the A record or wait for DNS caches to update. If they match, inspect the firewall, published port, proxy, and TLS status.
What should I do if UFW locks me out?
Keep an existing SSH session open while changing UFW. Test a second session before closing the first. If the second connection fails, use the original session to add the correct SSH rule or port. If every session is lost, use Hetzner console or recovery access to repair the firewall. Do not flush rules unless you have confirmed how remote access will be restored.
Sources
- Setup Dokploy on your VPS | Hetzner Community (community.hetzner.com)
- How To Install Dokploy On Ubuntu VPS - Rad Web Hosting Blog (blog.radwebhosting.com)
- Setup Dokploy on your VPS | Hetzner Community (community.hetzner.com)
- Dokploy installation - Hetzner Zero Trust VPS (mintlify.com)