Dokku is an open-source Platform as a Service that you can run on your own hardware, giving you a powerful alternative to services like Heroku. Powered by Docker, it helps you build and manage the entire lifecycle of your applications. Once configured on a host, you can deploy applications simply by pushing your code via Git.
The platform automatically builds your application using standard Heroku buildpacks and runs it within an isolated container. This provides you with your own personal, single-host version of Heroku without the associated costs or vendor lock-in.
Key features include:
git push command.services:
dokku:
image: dokku/dokku:latest
container_name: dokku
environment:
- DOKKU_HOSTNAME=dokku.example.com
ports:
- "80:80"
- "443:443"
- "2222:22"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./dokku-data:/mnt/dokku
restart: unless-stopped# Dokku does not require sensitive credentials in the environment by default.
# Authentication and access control are handled via SSH keys added post-installation.
# Example post-install command: cat ~/.ssh/id_rsa.pub | docker exec -i dokku dokku ssh-keys:add adminAuto-fetched 16 minutes ago
Auto-fetched 16 minutes ago