Software & Applications

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.

Dokploy self-hosted PaaS dashboard running on Hetzner Ubuntu
Dokploy self-hosted PaaS dashboard running on Hetzner Ubuntu

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.

GateWhat must be trueEvidence
HostFresh Hetzner x86 VPS, Ubuntu 24.04 LTS, enough RAM and storageHetzner Console and lsb_release -a
AccessSSH key works in a second terminalA new SSH session opens
FirewallSSH remains reachable and required web ports are allowedRemote connection and port test succeed
InstallThe supported Dokploy installer finishes without an errorInstaller completion output
ServicesDocker and Dokploy services are running or healthydocker ps and service inspection
DNSYour hostname resolves to the VPS public IPdig +short or getent ahostsv4
ProxyThe dashboard responds through its HTTP or HTTPS entry pointBrowser or curl response
CompletionFirst login works and recovery details are recordedDashboard 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:

Linux or macOS shell
ssh root@SERVER_PUBLIC_IP

If you use a sudo-enabled account, connect with that account. Open a root shell only when needed:

Linux or macOS shell
sudo -i

The Dokploy installation script requires root privileges.

Check the operating system, architecture, memory, disk space, and listening ports:

Ubuntu shell
lsb_release -a
uname -m
free -h
df -h /
ss -tulpn

You 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:

Ubuntu shell
ufw status verbose

Do 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:

Ubuntu shell
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw status numbered
ufw enable

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

  1. Confirm that you are root and that no unrelated service uses a required port.
Ubuntu shell
id
ss -tulpn

The first command should show uid=0(root). If a required port is occupied, identify the owning process before continuing.

  1. Run the installer shown on the Dokploy installation page.
Ubuntu shell
curl -sSL https://dokploy.com/install.sh | sh

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

  1. Check Docker and Dokploy services before opening the dashboard.
Ubuntu shell
docker version
docker ps --all
docker service ls

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

  1. If installation stops, preserve the output. Inspect the affected service instead of repeatedly rerunning the script.
Ubuntu shell
docker ps --all
docker service ls
docker service ps SERVICE_NAME
docker service logs SERVICE_NAME --tail 100

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

  1. Identify the ports that Dokploy actually published.
Ubuntu shell
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.

Ubuntu shell
sudo ss -ltnp
sudo lsof -iTCP -sTCP:LISTEN -n -P
  1. 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.
  2. Test DNS from a machine outside the server.
Linux or macOS shell
dig +short dokploy.example.com
getent ahostsv4 dokploy.example.com

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

  1. 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.
  2. 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.
  3. Recheck service health after login.
Ubuntu shell
docker service ls
docker ps --all

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

SymptomCheck firstSafe next action
Installer exits with an errorFinal installer output, Docker status, disk space, and occupied portsSave the error, inspect services and logs, then follow Dokploy recovery steps
A port is already in usess -tulpn and lsofStop or reconfigure only the identified unrelated service; do not kill an unknown process
SSH works but the dashboard does notListening ports, UFW, and any Hetzner Cloud firewallAllow only the documented Dokploy web ports and test again
IP works but hostname failsdig or getent ahostsv4 from an external machineCorrect the A record and wait for DNS caches to update
HTTP reaches the server but proxy routing failsDokploy service state and proxy logsCheck the hostname configured in Dokploy and inspect proxy service logs
HTTPS certificate failsDNS, port 80 or 443 access, hostname spelling, and certificate statusFix DNS and firewall access before retrying certificate issuance
A service is running but the dashboard is incompleteContainer status, service replicas, and recent logsTreat the installation as partial and resolve the unhealthy component before deploying

For a service-specific investigation, first list the names and states:

Ubuntu shell
docker service ls
docker ps --all

Then inspect the named service:

Ubuntu shell
docker service ps SERVICE_NAME
docker service logs SERVICE_NAME --tail 100

If 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

Cloud & Routing Desk

Think Tech Editorial

Troubleshooting guides for reverse proxies, TLS routing, and self-hosted PaaS deployments.