Dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: We were unable to retrieve content from the official website this time. The following description is based on what is generally known about Dokku. For specific versions, system requirements and installation commands, please refer to the official website https://dokku.com/ and the official documentation.
Introduction
Dokku is an open-source, self-hostable Platform as a Service (PaaS) tool. The project describes itself as "the smallest PaaS implementation you've ever seen." It borrows its way of working from Heroku: developers git push their code to a server, and Dokku automatically builds an image, starts a container, and configures the reverse proxy and domain. The whole process is based on Docker and can run on an ordinary VPS.
Key Features
- Git Push deployment: Code is built and released automatically after you push it, with an experience similar to Heroku.
- Multiple build methods: Supports Heroku-style Buildpacks (via Herokuish), Cloud Native Buildpacks and Dockerfiles, and can also deploy ready-made Docker images directly.
- Plugin ecosystem: Official and community plugins provide database services such as PostgreSQL, MySQL, Redis and MongoDB, as well as extensions such as automatic HTTPS certificates from Let's Encrypt.
- Domains and proxy: Uses Nginx as the reverse proxy by default, automatically configuring domains and port mappings. Other proxy implementations can be swapped in.
- App management: Manage environment variables, process scaling, storage mounts, zero-downtime deployment checks, rollbacks and more from the command line.
- Optional schedulers: Runs on a single machine with Docker by default, but can also connect to schedulers such as k3s and Nomad for multi-node deployments.
Target Users and Use Cases
- Individual developers and small teams who want to escape the fees of commercial PaaS offerings such as Heroku
- Users who want to host multiple web apps, APIs or side projects on a single VPS
- Teams that need a simple self-hosted deployment workflow without maintaining Kubernetes directly
Core Strengths
- Lightweight: The core is written in Shell and Go, with low resource usage and modest server requirements.
- Familiar workflow: Compatible with Heroku Buildpacks and Procfiles, so migrating from Heroku is relatively low-cost.
- Full control: You control your data and infrastructure, with no vendor lock-in.
- Free and open source: Licensed under MIT, with an active community and a rich plugin selection.
Installation and Deployment
On a fresh Ubuntu or Debian server, download the official bootstrap.sh installation script from the documentation on the official website and run it with root privileges to complete the installation. After installation, add your SSH public key and set a global domain, and you can start deploying:
# 在服务器上创建应用
dokku apps:create myapp
# 在本地添加远程仓库并推送部署
git remote add dokku dokku@your-server:myapp
git push dokku main
Technical Requirements
- A 64-bit Ubuntu or Debian system; refer to the official documentation for the specific supported versions
- At least about 1GB of RAM is recommended; swap can be configured if memory is insufficient
- A domain name or hostname that resolves to the server, used to access your apps
Notable Characteristics
- Designed for single-machine deployment by default, which suits small and medium-sized projects; when you need multiple nodes, you can scale out with a scheduler such as k3s.
- Operated mainly through the command line, with no free official web management panel; the official commercial edition, Dokku Pro, offers a web interface and other additional features.
Discover more
ZaneOps
A beautiful and fast self-hosted PaaS for deploying and managing web apps, databases, static websites and more.
Ansible-NAS
Build a full-featured home server with this playbook and an Ubuntu box.
DockSTARTer
DockSTARTer helps you get started with home server apps running in Docker.
HomelabOS
Offline privacy-centric data-center. Deploy over 100 services with a few commands.
Mars Server
Managed home server with Docker, Docker Compose, Make and Bash.
Mistborn
Virtual private cloud platform and WebUI that manages self hosted services.