Dokku turns a Linux server into a small application hosting platform. You install it yourself on a bare Ubuntu 24.04, then every git push builds and runs your app.
Dokku is not installed automatically: you run the official installer and handle upgrades yourself. Databases come from plugins that you install separately.
Choose the resources of your VPS
Dokku runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Install Dokku on an Ubuntu 24.04 VPS and deploy apps with git push: buildpacks or Dockerfile, per-app domains and Let's Encrypt HTTPS.
Dokku turns a Linux server into a small application hosting platform. You install it yourself on a bare Ubuntu 24.04, then every git push builds and runs your app.
Step-by-step procedure
Order the VPS and connect
Order a VPS Mini running Ubuntu 24.04 LTS, add your SSH key, then log in as root using the IPv4 address you receive.
Run the official installer
Download the bootstrap script for the version given in the documentation and run it. It installs Docker, Nginx and Dokku, and reuses your SSH keys.
Set the global domain
Create an A record and a wildcard pointing to the IPv4, then declare the domain. Each app then gets a subdomain such as myapp.example.com.
Create an application
Create the app on the server. If needed, add a database with an official plugin and set your variables with dokku config:set.
Deploy with git push
From your computer, add the dokku remote to your repository and push the main branch. Dokku builds the image and starts the app.
Turn on HTTPS
Install the official Let's Encrypt plugin, set your email once, then enable the certificate for each app.
Choose the resources of your VPS
Dokku runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Ubuntu 24.04
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Dokku on a VPS?
Dokku is an open source PaaS, often described as a self-hosted Heroku. It builds your applications with buildpacks or a Dockerfile, runs them in Docker containers and puts Nginx in front to route each domain. Official plugins add PostgreSQL, Redis, MySQL or Let's Encrypt certificates.
On a VPS, Dokku gives you the comfort of git push deployments without paying a service per app. Everything is driven from the command line with dokku, and one machine can host several projects: an API, a site, a bot or a scheduled job, each with its own environment variables.
A bare Ubuntu 24.04 for Dokku
Dokku installs Docker and Nginx and takes ports 80 and 443. A bare system avoids any conflict with another web server.
One IPv4 for all your domains
Point a domain and its subdomains to the VPS dedicated IPv4. Dokku routes each name to the right app and Nginx handles the traffic.
Root access and SSH keys
The installer reuses root's SSH keys for the dokku user. You deploy with the same key you use to log in.
Backups before upgrades
Apps, their databases and the configuration live on the VPS. Run a backup from the panel before upgrading Dokku.
Before you start
Good to know: Dokku is not installed automatically: you run the official installer and handle upgrades yourself. Databases come from plugins that you install separately.
VPS running Ubuntu 24.04 LTS (bare system)
At least 1 GB RAM with the Docker scheduler (official docs): VPS Mini leaves headroom
A domain with an A record, ideally a wildcard *, pointing to the IPv4
Ports 22, 80 and 443 open
Git installed on your own computer
Install Dokku on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and connect: Order a VPS Mini running Ubuntu 24.04 LTS, add your SSH key, then log in as root using the IPv4 address you receive.
Run the official installer: Download the bootstrap script for the version given in the documentation and run it. It installs Docker, Nginx and Dokku, and reuses your SSH keys.
Set the global domain: Create an A record and a wildcard pointing to the IPv4, then declare the domain. Each app then gets a subdomain such as myapp.example.com.
Create an application: Create the app on the server. If needed, add a database with an official plugin and set your variables with dokku config:set.
Deploy with git push: From your computer, add the dokku remote to your repository and push the main branch. Dokku builds the image and starts the app.
Turn on HTTPS: Install the official Let's Encrypt plugin, set your email once, then enable the certificate for each app.
For which projects?
Host several web apps
Deploy an API by git push
Replace a paid PaaS
Team staging environment
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Dokku on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Dokku on a VPS?
On a bare Ubuntu 24.04 VPS, download the bootstrap.sh script for the version given in the documentation, then run it with the DOKKU_TAG variable. It installs Docker, Nginx and Dokku and adds your SSH keys. Then declare your domain with dokku domains:set-global, create an app and push your code with git push.
Which plan should I choose for Dokku?
The documentation asks for at least 1 GB of RAM with the Docker scheduler. VPS Mini (2 vCPU, 8 GB, 40 GB) is enough for several small apps. Every build and every database adds load: with many apps or heavy builds, VPS Essential gives more memory and storage.
Is Dokku free?
Yes. Dokku is open source under the MIT licence and needs no account. You only pay for the VPS. A paid edition, Dokku Pro, adds a web interface, but it is not required: everything can be done from the command line.
Do I need a Dockerfile to deploy?
No. Without a Dockerfile, Dokku detects the language and uses Heroku-compatible buildpacks, for example for Node.js, Python, Ruby or PHP. If your repository contains a Dockerfile, Dokku uses it to build the image. Both methods go through the same git push.
How do I add a PostgreSQL database to an app?
Install the official dokku-postgres plugin, create a service with dokku postgres:create, then link it to the app with dokku postgres:link. Dokku then injects the DATABASE_URL variable into the app. The same approach works for Redis, MySQL and other services.