Skip to main content

How to install Dokploy on Ubuntu and Debian

Dokploy is an open-source, self-hosted platform for deploying and managing applications and databases with Docker and Traefik. It has a web control panel and makes application deployment, domain management and SSL configuration much simpler.

1. System requirements

OS: Ubuntu 24.04; Debian 12

CPU: 2 vCPU

RAM: At least 2 GB

Disk space: At least 30 GB

Access: SSH with root privileges

Virtualization: KVM (Linux VPS)

Available TCP ports: 80, 443, 3000

We recommend using a clean VPS without Apache, Nginx or any other hosting control panel.

Please note. This guide is not suitable for Container and Storage VPS, because they use OpenVZ virtualization.

2. Preparing the server

Connect to your VPS via SSH:

ssh root@VPS_IP

Update the system packages:

apt update && apt upgrade -y

Install the required utilities:

apt install -y curl ca-certificates

Check if the required ports are already in use:

ss -tulpn | grep -E ':(80|443|3000)\b'

If the command returns nothing, these ports are free.

3. Installing Dokploy

Run the official installation command:

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

The script installs and configures Docker automatically if it is not installed yet, initializes Docker Swarm and deploys the services that Dokploy needs. You don't need to install Docker or a database server separately.

When the installation is finished, check the Docker services:

docker service ls

The list should include these services:

  • dokploy

  • dokploy-postgres

  • dokploy-redis

Now check the running containers:

docker ps

The Dokploy and Traefik containers should be running.

3. Secure Dokploy

By default, Dokploy is available from any IP address on port 3000. To make it more secure, we recommend allowing access only from your own public IP address.

Block port 3000 for all IP addresses except yours:

iptables -t mangle -I PREROUTING -p tcp --dport 3000 -m addrtype --dst-type LOCAL ! -s 203.0.113.10 -j DROP

Replace 203.0.113.10 with your actual public IPv4 address.

If IPv6 is enabled on your server, block port 3000 over IPv6 as well:

ip6tables -t mangle -I PREROUTING -p tcp --dport 3000 -m addrtype --dst-type LOCAL -j DROP

Now Dokploy on port 3000 can be accessed only from the IPv4 address you specified. These rules do not affect SSH or the websites on ports 80 and 443.

To make rules permanent, install iptables-persistent:

apt install -y iptables-persistent

When the installer asks, choose Yes to save the current IPv4 and IPv6 rules.

After that, run:

netfilter-persistent save

Now the firewall rules will be restored automatically after a reboot.

4. Accessing the Dokploy control panel

Open your web browser and go to the address below. Replace SERVER_IP with the IP address of your server:

http://SERVER_IP:3000

You will see the registration page. Create an administrator account: enter your details and choose a strong password.

You will see seps for initial setup. Dokploy recommends to follow these steps if you using it for the first time.

However, if you want, you can skip them:

After that you will see the Dokploy dashboard. Now you can start working with Dokploy:

If the control panel does not open, check the firewall settings of your server. For the initial setup we recommend allowing access to TCP port 3000 only from your own IP address, if possible.

5. Configuring a domain and HTTPS (Optional)

To access the control panel securely, create an A record in the DNS zone of your domain (enter your domain instead of example.com):

Name

Type

Value

dokploy.example.com

A

VPS_IP

In the Dokploy control panel go to Settings → Web Server, set your domain and enable the Let's Encrypt certificate (as shown on the screenshots):

Enter your actual domain instead of yourdomain.ltd and also real email. Then choose Let's Encrypt as the certificate provider:

Now you can access Dokploy by just entering your domain in the browser.

6. Updating Dokploy

To update Dokploy to the latest stable version, run this command:

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

We recommend creating a backup before the update.

Did this answer your question?