Using LetsEncrypt to Switch a Phoenix App Deployed with Dokku to HTTPS

Do you have a Phoenix application deployed using Dokku? Then, you can switch to using HTTPS in less than 5 minutes.

This is more of a Dokku post because this same process will probably work with any other application deployed with it. I've encrypted two Phoenix apps and this ghost blog using the same process.

Requirements: Dokku 0.4 or above


  1. SSH into your VM and install the dokku-letsencrypt plugin: sudo dokku plugin:install

  2. Set up LetsEncrypt with your email:
    dokku config:set --no-restart myapp DOKKU_LETSENCRYPT_EMAIL=your@email.tld

  3. Set Up SSL:
    dokku letsencrypt myapp

And thats it! Your container will restart and now your using HTTPS, how easy was that!