- Create Digital Ocean droplet with Dokku pre-installed
- Follow this guide
dokku apps:create practice-dokku
- Create your app with git locally
- Add remote
dokku
urlgit remote add dokku dokku@123.456.789.012:practice-dokku
- Push to
dokku
remotegit push dokku master
- Your application will be launched on a particular port number Eg:
23149
. Thus your application URL will be likehttp://68.101.221.21:23149
[Provided you use thebuildpack
. If you useDockerfile
, then the port number will be your docker file configuration]- Remember to open up the port number on your DO if not you will not be able to access the website. Follow this guide
- To change your application port number to port 80. Follow this guide
dokku domains:add practice-dokku www.domain.tld
- Remember to configure your DigitalOcean records
- Make sure the app has a domain.
- Install dokku-letsencrypt.
dokku letsencrypt node-app
dokku letsencrypt:cron-job --add
so the certificate is renewed automatically every 3 months.
- https://pawelurbanek.com/optimize-dokku-deployment-speed
- https://itnext.io/frontend-dockerized-build-artifacts-with-nextjs-9463f3da3362
- https://www.albertgao.xyz/2019/01/28/how-to-create-your-own-dockerfile-for-a-rapid-dokku-deployment/
- https://medium.com/@pimterry/effortlessly-add-https-to-dokku-with-lets-encrypt-900696366890
- https://auth0.com/blog/hosting-applications-using-digitalocean-and-dokku/
- https://www.digitalocean.com/community/questions/security-tips-and-suggestion-dokku-node-js-app