DigitalOcean Droplet Installation Notes¶
DigitalOcean offers a pre-installed Dokku image. You can run this image on any sized Droplet, although larger Droplets will allow you to run larger applications.
Info
Please disable IPv6. There are known issues with IPv6 on DigitalOcean and Docker. If you would like to run Dokku on an IPv6 DigitalOcean Droplet, please consult this guide.
- Login to your DigitalOcean account.
- Click Create a Droplet.
- Under Choose an image > Marketplace, search latest Dokku release for Ubuntu 20.04 (version numbers may vary).
- Under Choose a size, select your machine spec.
- Under Choose a datacenter region, select your region.
- Add an SSH Key.
- New Keys
- Under Add your SSH keys click New SSH Key (this opens a dialog).
- From your terminal, execute
cat $HOME/.ssh/id_rsa.pub
. - Copy the output and paste it into the New SSH Key dialog, provide a name and click Add SSH Key.
- Existing Keys
- Simply add a checkmark next to the existing keys you'd like to add.
- Under Finalize and create, give your Droplet a hostname (not required) and click Create.
- Once created, copy the IP address to your clipboard.
- In a terminal, ssh onto the server by running
ssh root@$SERVER_IP
, where$SERVER_IP
is your server's IP address. - Remove the default nginx site via
rm /etc/nginx/sites-enabled/default
-
If you added more than one key, use the
dokku ssh-keys:add
to add an ssh key to the dokku user: -
Ensure your server has a correct global hostname via
dokku domains:set-global
-
Once the web UI has been submitted, you will be redirected to our application deployment tutorial, which will guide you through deploying a sample application to your Dokku server.