These are the scripts I use to setup a new Dokku instance. Feel free to fork it and adapt it to your needs.
Upload your public SSH key to https://ssh.keychain.pw using the following command:
curl -sk https://ssh.keychain.pw/your@email.tld/upload | bash
For instructions on how to use ssh.keychain.pw visit https://ssh.keychain.pw/your@email.tld/help
Run this as root (set SSH_KEY
to your email and DOKKU_TAG
to the desired version):
SSH_KEY=your@email.tld DOKKU_TAG=v0.20.4 bash <(curl -sk https://raw.githubusercontent.com/iamso/dokku-setup/master/install.sh)
This script also installs the plugins!
Run this as root:
bash <(curl -sk https://raw.githubusercontent.com/iamso/dokku-setup/master/update.sh)
This script also updates the plugins!
The update script does not restart the apps to allow you to reboot.
So after reboot just run dokku ps:rebuildall
, to rebuild/restart all the apps.
Install some plugins:
curl -sk https://raw.githubusercontent.com/iamso/dokku-setup/master/plugins.sh | sudo bash
Update plugins:
curl -sk https://raw.githubusercontent.com/iamso/dokku-setup/master/plugins-update.sh | sudo bash