LinuxCommandLibrary

dokku

self-hosted Platform-as-a-Service powered by Docker

TLDR

Create an app

$ dokku apps:create [app_name]
copy
Deploy via git push
$ git push dokku main
copy
List all apps
$ dokku apps:list
copy
View app logs
$ dokku logs [app_name]
copy
Set environment variable
$ dokku config:set [app_name] [KEY]=[value]
copy
Link database
$ dokku postgres:link [db_name] [app_name]
copy
Scale app processes
$ dokku ps:scale [app_name] web=[2]
copy
Add domain
$ dokku domains:add [app_name] [example.com]
copy

SYNOPSIS

dokku command [options] [app]

DESCRIPTION

Dokku is a self-hosted Platform-as-a-Service (PaaS) that implements a Heroku-like workflow. It uses Docker containers and buildpacks to deploy applications from git push.
The platform automatically detects application type, builds containers, manages routing, and handles SSL certificates. Plugins extend functionality with databases (PostgreSQL, MySQL, Redis), cron jobs, and more.
Dokku provides a simple deployment experience: push code to the server, and it handles building, deploying, and scaling. It's ideal for small teams wanting Heroku-like convenience on their own infrastructure.

PARAMETERS

COMMAND

Dokku command and subcommand.
APP
Application name.
apps:create NAME
Create new application.
apps:list
List all applications.
logs APP
View application logs.
config:set APP KEY=VALUE
Set environment variable.
ps:scale APP PROC=N
Scale process count.
domains:add APP DOMAIN
Add custom domain.
--help
Display help information.

CAVEATS

Single-server by default (clustering requires plugins). Resource usage depends on deployed apps. Some buildpacks may need customization. SSL requires plugin configuration.

HISTORY

Dokku was created by Jeff Lindsay in 2013 as a Docker-powered mini-Heroku. It became popular as a self-hosted PaaS solution, offering Heroku's git-push deployment model on personal servers.

SEE ALSO

docker(1), git(1), heroku(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community