Add a New Dokku App

Published

Runbook for creating a new dokku app on aws. You can replace all of the the dokku command using ssh like ssh dokku@mydomain.com {command} {args}.

  1. Create the app: git remote add dokku dokku@mydomain.com:myapp and then git push origin dokku
  2. Add your email to the letsencrypt plugin dokku letsencrypt:set myapp email youremail@email.com
  3. Create an SSL certificate: dokku letsencrypt:enable myapp (set up the letsencrypt plugin using the instructions here)
  4. Map the http and https ports: dokku ports:set myapp http:80:8080 https:443:8080 (replace 8080 with the port the underlying app exposes)