---
title: How to Deploy Dokploy – Self-Hosted PaaS for Docker Applications
url: https://docs.vultr.com/how-to-deploy-dokploy-self-hosted-paas-for-docker-applications
description: Install Dokploy to deploy applications with Docker, Traefik, and automatic HTTPS.
publish_date: 2026-01-14T18:44:53.950000Z
last_updated: 2026-02-01T18:30:00Z
author: Abhinav Shaurya Agarwal
header_image: https://docs.vultr.com/public/doc-assets/2467/377d34aa-33c3-4420-86f6-12083ccbead5.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Dokploy is an open-source, self-hosted Platform as a Service (PaaS) that simplifies application deployment and management. It serves as a free alternative to platforms like Heroku, Vercel, and Netlify, using Docker for containerization and Traefik for automatic HTTPS routing. Dokploy provides a web-based dashboard where administrators can deploy applications from Git repositories, manage databases, configure environment variables, and monitor resource usage.

This article explains how to install Dokploy on Ubuntu 24.04 and deploy a sample application. It covers the installation process, initial configuration, deploying an application from a GitHub repository, configuring a custom domain with SSL certificates, and monitoring application performance through the Dokploy dashboard.

## Prerequisites

Before you begin, you need to:

* Have access to an [Ubuntu 24.04-based server](https://www.vultr.com/servers/ubuntu/) as a [non-root user with `sudo` privileges](https://docs.vultr.com/limited-user-login).
* Configure a [domain A record](https://docs.vultr.com/products/network/dns/management/manage-records) pointing to your server's IP address (for example, `dokploy.example.com` and `app.example.com`).

## Install Dokploy

Dokploy provides a single installation script that installs Docker (if not present), configures Docker Swarm mode, and deploys the Dokploy application stack. The script requires root privileges and handles all dependencies automatically.

1. Update the server's package index.

    ```console
    $ sudo apt update
    ```

1. Run the Dokploy installation script with root privileges.

    ```console
    $ curl -sSL https://dokploy.com/install.sh | sudo sh
    ```

    Output:

    ```
    Congratulations, Dokploy is installed!
    Wait 15 seconds for the server to start
    Please go to http://YOUR-SERVER-IP:3000
    ```

    The script installs and configures Dokploy and its dependencies.

1. Add your user to the `docker` group to run Docker commands without `sudo`.

    ```console
    $ sudo usermod -aG docker $USER
    $ newgrp docker
    ```

1. Verify that the Dokploy services are running.

    ```console
    $ docker service ls
    ```

    Output:

    ```
    ID             NAME               MODE         REPLICAS   IMAGE                    PORTS
    yjuz1bv9slln   dokploy            replicated   1/1        dokploy/dokploy:latest   
    icesr4uht5py   dokploy-postgres   replicated   1/1        postgres:16              
    aqb1hms95ox8   dokploy-redis      replicated   1/1        redis:7      
    ```

    You should see the `dokploy` service and supporting services (for example, PostgreSQL and Redis). Depending on the Dokploy version and your configuration, you may also see a Traefik service (sometimes shown as `dokploy-traefik`) for HTTP/HTTPS routing.

## Access the Dokploy Dashboard

The web interface runs on port 3000 by default. In this section, you access the dashboard and create the administrator account.

1. Open the Dokploy dashboard in your web browser. Replace `SERVER-IP` with your server's IP address.

    ```
    http://SERVER-IP:3000
    ```

1. The setup page prompts you to enter your name, email address, and password for the initial administrator account. Click **Register** to complete the setup.

    ![Dokploy initial setup page](https://docs.vultr.com/public/doc-assets/2467/f2637d9f-8661-4cca-bb70-48a98b45f2fd.png)

    The dashboard displays the main project view after registration. From here, you can create projects, deploy applications, and manage databases.

   > [!NOTE]
   > The initial setup uses HTTP on port 3000. This article shows how to configure a custom domain with HTTPS for the Dokploy dashboard later in the **Secure the Dokploy Dashboard** section.

## Deploy a Sample Application

Dokploy supports multiple deployment methods including GitHub repositories, Git URLs, Docker images, and Docker Compose files. In this section, you deploy a sample Node.js application from a public GitHub repository.

### Create a Project

1. Click **Create Project** from the dashboard.

    ![Dokploy dashboard project creation button](https://docs.vultr.com/public/doc-assets/2467/f0a93805-3ad0-487b-9209-1d5e6af33e3b.png)

1. Enter a project name (for example, `demo-project`) and click **Create**.

    The project page opens, displaying options to add applications, databases, and Docker Compose stacks.

### Add an Application

1. Click **Create Service** and select **Application**.

    ![Dokploy create service menu showing Application option](https://docs.vultr.com/public/doc-assets/2467/2bf31e98-b016-4fc7-84ef-47fe1921125b.png)

1. Enter an application name (for example, `hello-app`) and click **Create**.

1. Navigate to the **General** tab and configure the source settings:

    * **Provider**: Select **GitHub** (or **Git** for custom repositories).
    * **Repository URL**: Enter a public repository URL (for example, `https://github.com/dokploy/hello-world`).
    * **Branch**: Enter `main`.

    ![Dokploy application general settings showing source provider and repository fields](https://docs.vultr.com/public/doc-assets/2467/cfb9a74f-2cfd-4db3-9222-dc2541f75568.png)

1. Configure the build settings:

    * **Build Type**: Select **Nixpacks** (automatically detects and builds most applications).

    Dokploy supports multiple build types:

    * **Nixpacks**: Auto-detects language and dependencies (recommended for most applications).
    * **Heroku Buildpacks**: Compatible with Heroku-style applications.
    * **Paketo Buildpacks**: Cloud-native buildpacks for production deployments.
    * **Dockerfile**: Uses a custom Dockerfile from the repository.

1. Click **Save** to apply the configuration.

### Deploy the Application

1. Click **Deploy** to start the build process.

1. Navigate to the **Deployments** tab to monitor the build progress.

    The deployment log shows each build step including dependency installation, compilation, and container creation. A successful deployment displays a green status indicator.

1. Navigate to the **Logs** tab to view the application's runtime output.

    Output:

    ```
    Server listening on port 3000
    ```

    The application is now running inside a Docker container managed by Dokploy.

## Configure a Custom Domain with SSL

Dokploy uses Traefik to route traffic and automatically provision SSL certificates through Let's Encrypt. Traefik requires ports 80 and 443 to handle HTTP/HTTPS traffic and certificate provisioning.

1. Allow HTTP and HTTPS traffic through the firewall.

    ```console
    $ sudo ufw allow 80/tcp
    $ sudo ufw allow 443/tcp
    ```

1. Enable UFW if it is not already enabled.

    ```console
    $ sudo ufw enable
    ```

1. Verify the firewall status.

    ```console
    $ sudo ufw status
    ```

### Configure a Custom Domain

1. Navigate to the **Domains** tab for your application.

1. Click **Add Domain**.

    ![Dokploy add domain button in application domains tab](https://docs.vultr.com/public/doc-assets/2467/7dc36f0e-c2bd-404d-9a48-fff13cfbe2c8.png)

1. Configure the domain settings:

    * **Host**: Enter your domain (for example, `app.example.com`).
    * **Container Port**: Verify this matches the port your application listens on (check the application logs).
    * **HTTPS**: Enable to provision an SSL certificate.
    * **Certificate Provider**: Select **Let's Encrypt** for automatic certificate management.

1. Click **Create** to save the domain configuration.

1. Verify that your domain's DNS A record points to your server's IP address.

    * Install `dig` if it is not available.

        ```console
        $ sudo apt install -y dnsutils
        ```

    * Query the DNS A record for `app.example.com`.

        ```console
        $ dig +short app.example.com
        ```

        Output:

        ```
        SERVER-IP
        ```

        Verify the output matches your server's public IP address.

1. Access the application through your custom domain.

    ```
    https://app.example.com
    ```

    Traefik automatically provisions the SSL certificate on the first request. Certificate renewal occurs automatically before expiration.

### Secure the Dokploy Dashboard

This section assigns a domain to the Dokploy dashboard, enables HTTPS, and disables IP:port access after confirming the domain works.

1. Navigate to **Settings > Web Server** in the Dokploy dashboard.

    ![Dokploy settings page showing Web Server configuration](https://docs.vultr.com/public/doc-assets/2467/49314f7e-c8fe-4a99-a168-37b57c740fd0.png)

1. Configure a domain for the panel (for example, `dokploy.example.com`).

1. Enable HTTPS and select Let's Encrypt for certificate provisioning.

1. Verify the domain works correctly by accessing `https://dokploy.example.com`.

1. Disable IP:port access after confirming the domain works.

    ```console
    $ docker service update --publish-rm "published=3000,target=3000,mode=host" dokploy
    ```

    > [!WARNING]
    > Verify that your domain is working correctly with HTTPS before disabling IP:port access. Otherwise, you lose access to the Dokploy dashboard.

## Deploy a Database

Dokploy provides one-click database deployments with automatic backup configuration. In this section, you deploy a PostgreSQL database.

1. Navigate to your project and click **Create Service**.

1. Select **Database** and choose **PostgreSQL**.

1. Enter a database name (for example, `app-db`) and click **Create**.

1. Navigate to the **General** tab to view the database connection settings.

    Dokploy displays internal connection details for application-to-database connections on the server:

    * **User**
    * **Database Name**
    * **Password**
    * **Internal Port (Container)**: Container port for PostgreSQL (default `5432`).
    * **Internal Host**: Hostname that applications use to reach the database over Dokploy's internal network.
    * **Internal Connection URL**: Prebuilt connection string you can copy into your application configuration.

    It also includes an **External Port (Internet)** field. Set this only if you need to connect from outside the server (for example, from your workstation).

    ![Dokploy PostgreSQL internal and external credentials](https://docs.vultr.com/public/doc-assets/2467/006834d0-d065-4b79-913e-70de00a630cc.png)

1. Click **Deploy** to start the database container.

1. Optionally configure automated backups in the **Backups** tab:

    * Set backup frequency (hourly, daily, weekly).
    * Configure an S3-compatible destination for off-server storage.

### Connect the Application to the Database

1. Navigate to the **Environment** tab for your application.

1. Copy the **Internal Connection URL** value from the database's **General** tab and save it as an environment variable.

    ```ini
    DATABASE_URL=INTERNAL-CONNECTION-URL
    ```

    Replace `INTERNAL-CONNECTION-URL` with the exact value displayed in Dokploy (use the copy button next to the field).

1. Click **Save** and redeploy the application for the changes to take effect.

## Monitor Application Resources

Dokploy provides real-time monitoring for CPU, memory, disk, and network usage. In this section, you access the monitoring dashboard.

1. Navigate to the **Monitoring** tab for your application.

    Four graphs display resource utilization:

    * **CPU Usage**: Processor usage percentage.
    * **Memory Usage**: RAM consumption in megabytes.
    * **Block I/O**: Storage I/O operations.
    * **Network I/O**: Inbound and outbound traffic.

1. Use the monitoring data to identify performance bottlenecks and adjust resource limits.

1. Navigate to the **Advanced** tab to configure resource constraints:

    * **CPU Limit**: Maximum CPU cores allocated to the container.
    * **Memory Limit**: Maximum RAM allocated to the container.

## Conclusion

You have installed Dokploy on Ubuntu 24.04 and deployed a sample application with a custom domain and SSL certificate. The platform provides a centralized dashboard for managing containerized applications, databases, and Docker Compose stacks with automatic HTTPS provisioning through Traefik. For advanced features including cluster deployments, remote servers, and custom Traefik configurations, refer to the [official Dokploy documentation](https://docs.dokploy.com).
