Deploy Dokploy on a VPS easily thumbnail png

How to Install Dokploy on Ubuntu VPS (Oracle Cloud Friendly)

Learn how to install and host Dockploy on a VPS using Ubuntu. This guide covers Docker setup, Dockploy installation, opening ports on Oracle Cloud, handling missing UFW, and securing your server.

BHS
Best Hindi Stories

published at: Mon Feb 09 2026
updated at: Mon Feb 09 2026

Admin

Dokploy is a lightweight self‑hosted deployment panel. It lets you deploy apps using Docker without heavy CI/CD setups. If you want full control and low cost, running Dokploy on a VPS is a great move. It offers some great feature for example - instant testing domain via Traefik which makes testing our deployments much easier, building an optimized docker container from scratch to give you best performance possible.

This guide walks you through installing Dokploy on an Ubuntu VPS, with special notes for Oracle Cloud, including firewall and port issues.

No fluff. Just clean steps.

Also Read: How to Get a Free 24GB RAM VPS on Oracle Cloud (2026 Guide) | Always Free Tier Setup

What You’ll Need

  • A VPS (Ubuntu 22.04 or 24.04 recommended)
  • Root or sudo access
  • A public IP address
  • Basic terminal knowledge

Oracle Cloud Free Tier works perfectly.

Step 1: Connect to Your VPS

Let’s start by connecting to your VPS via ssh or any method that can give you access to the root. To access your VPS via ssh you would require ssh key downloaded at the time of VPS instance creation if you used oracle. if you are using AWS or Google Cloud Platform there are built in browser terminal that you can use to access you VPS.

ssh -i <YOUR_SSH_KEY> ubuntu@YOUR_PUBLIC_SERVER_IP

Update the system first:

Now we need to upgrade our system with latest dependencies available. To do so just run the command give below.

sudo apt update && sudo apt upgrade -y

Step 2: Open Ports on Oracle Cloud Dashboard

Oracle Cloud is notorious for its strict external firewall (Security Lists). Even if you open ports on your server, Oracle will block them at the network level unless you do this first:

  1. Log in to your Oracle Cloud Console.
  2. Go to Instances and click on your instance.
  3. In details tab scroll down to Instance details and click Virtual cloud network name.
  4. Now in VCN tab go to Security tab and below in security list select the default security list available.
  5. Again in that security list go to Security Rules tab and click on Add Ingress Rules
  6. Now add Ingress Rules for the following ports:
  • Port 80: (HTTP) - Source: 0.0.0.0/0
  • Port 443: (HTTPS) - Source: 0.0.0.0/0
  • Port 3000: (Dokploy Dashboard) - Source: 0.0.0.0/0
  • Port 22: (SSH) - Usually open by default.

Oracle cloud ingress rule for vps managemanet

Port 22 is required for ssh, Port 443 and Port 80 is required for custom domains to work, and Port 3000 is required to access Dokploy.

Step 3: Clean the Local Firewall (The "Oracle Trap")

By default, Oracle Ubuntu images use iptables rules that block almost everything, and ufw is often not installed. We need to clear these and set up a fresh firewall using iptables and ufw.

Connect to your VPS via SSH and run:

# Update the system first sudo apt update && sudo apt upgrade -y # Flush existing iptables rules to prevent conflicts sudo iptables -F sudo iptables -X sudo iptables -t nat -F sudo iptables -t nat -X sudo iptables -t mangle -F sudo iptables -t mangle -X sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT # Make these changes persistent sudo apt install iptables-persistent -y sudo netfilter-persistent save

Step 4: Install and Configure UFW

We also need to need to install ufw so that we can save our firewalls.

# Install UFW sudo apt install ufw -y # Allow essential ports sudo ufw allow 22/tcp sudo ufw allow 80/tcp sudo ufw allow 443/tcp sudo ufw allow 3000/tcp # Enable the firewall sudo ufw enable

Note: Type y when asked if you want to proceed. Since we allowed port 22, you won't lose your SSH connection.

Step 5: Install Dokploy

Now for the easy part. Dokploy provides a "magic" one-line script that installs Docker, sets up Swarm mode, and pulls the Dokploy images.

Run this command:

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

The installation usually takes 2–5 minutes. Once finished, you’ll see a success message.

Step 6: Initial Dashboard Setup

Now just wait about 30 seconds for the containers to start up, then open browser and go to http://YOUR_SERVER_IP:3000 You will see Dokploy UI which will ask you to setup your admin account. Create your admin account by entering an email and password. Now boom, you are ready to go.

http://YOUR_SERVER_IP:3000
  1. Create Admin: You’ll be prompted to create your first admin account.
  2. Server Domain: Inside the dashboard, go to Settings and add your domain name (e.g., panel.yourdomain.com).
  3. SSL: Dokploy handles Let's Encrypt certificates automatically. Just toggle the HTTPS switch.

Common Troubleshooting

  • Can't access port 3000? You should double-check your Oracle Cloud Ingress rules. 90% of the time, the issue is there.
  • Docker errors? If the script fails, please check if Docker engine is active or not, try running sudo systemctl status docker to ensure the Docker engine is active.

Final Thoughts

You now have a fully functional deployment platform. You can connect your GitHub account, set up databases (PostgreSQL, MongoDB, etc.), and deploy your apps with zero downtime.

Running it on a VPS like Oracle Cloud gives you:

  • Full control
  • Zero vendor lock‑in
  • Free or very low cost

Once installed, deploying apps becomes effortless.

Happy shipping 🚀

Frequently Asked Questions

Category:

Cloud

Tags:

CloudVPSOracle Cloud InfrastuctureUbuntuDevOpsDokployVps Hosting

You may also like

How to Get a Free 24GB RAM VPS on Oracle Cloud (2026 Guide) | Always Free Tier Setup

Getting a free vps on Oracle Cloud Infrastucture (OCI) is much easier process than anyone can imagine. Oracle Cloud is so generous that you can claim a lifetime free Virtual Machine with 24GB ram and 200GB volume. Yes 24GB of ram and this comes under Oracle's Always Free Tier means you don't have to spend a single penny.

The Raccoon Has Landed: Why Ubuntu 26.04 LTS is the Upgrade We’ve Been Waiting For

I have been testing Ubuntu 26.04 beta for a long time and let me tell you that I am really stunned seeing what Ubuntu can feel like. Memory usage drop almost by 60% compare to Windows 11, no lag, no shutter even on heavy load. I tried many linux distros but am loving Ubuntu 26.04.

The 4 Massive Structural Changes in Ubuntu 26.04 LTS You Must Know

Ubuntu 26.04 LTS (Resolute Raccoon) has officially arrived, and it is a massive leap forward for the Linux ecosystem. Canonical isn't just delivering another stable update; they are fundamentally modernizing the OS. From a gorgeous, unified GNOME 50 desktop with buttery-smooth Wayland animations, to under-the-hood overhauls featuring memory-safe Rust utilities and immutable architecture options. Whether you are a full-stack developer, a home-lab enthusiast, or just looking for a rock-solid daily driver, here is everything you need to know about the massive upgrades powering Ubuntu 26.04.Ubuntu 26.04 LTS (Resolute Raccoon) has officially arrived, and it is a massive leap forward for the Linux ecosystem. Canonical isn't just delivering another stable update; they are fundamentally modernizing the OS. From a gorgeous, unified GNOME 50 desktop with buttery-smooth Wayland animations, to under-the-hood overhauls featuring memory-safe Rust utilities and immutable architecture options. Whether you are a full-stack developer, a home-lab enthusiast, or just looking for a rock-solid daily driver, here is everything you need to know about the massive upgrades powering Ubuntu 26.04.