Re:Dokku – Free Heroku Alternative
by zwarag on Saturday May 14, 2022 @10:47AM
(#31378461)
How does it differ from portainer?
[ Parent
| on HN ]
Re:Dokku – Free Heroku Alternative
by wilsonfiifi on Saturday May 14, 2022 @10:51AM
(#31378506)
Portainer is more of a UI for docker and docker containers. But dokku is and actual platform similar to heroku that helps you deploy your apps.
Last I used dokku my understanding was that it used Heroku's open source build packs. So it was very much your own hosted heroku. This was at least 7 years ago though.
Re:Dokku – Free Heroku Alternative
by josegonzalez on Sunday May 15, 2022 @10:30AM
(#31387766)
Dokku maintainer here:
Dokku supports a number of methods to deploy apps:
- Docker images [1]: via `git:from-image`
- Tarballs [2] (extracting into a heroku-like env): via `git:from-archive`
- Dockerfile [3]: autodetected using our builder-dockerfile plugin (or selectable via builder:set)
- Heroku Buildpacks [4]: autodetected using our builder-herokuish plugin (or selectable via builder:set)
- Cloud Native Buildpacks [5]: autodetected using our builder-nix plugin (or selectable via builder:set)
Someone in the community hated these options and wrote one for nix[6]. Others are free to do so as well (or even customize our built-in ones through settings or forks).Finally, I've also got two builders in the works:
- lambda: builds a lambda-compatible docker image (and an optional zipball of the code in case you want to deploy that on their official runtimes)
- compose: builds using docker-compose (for usage with a compose scheduler)
Dokku has been built with extensibility in mind, so if it doesn't do what you think it should do out of the box, overriding that functionality is fairly straightforward (plugins can be in any language, so feel free to drop golang/shell and use something else if that floats your boat). - [1] Build from a docker image: https://dokku.com/docs/deployment/methods/git/#initializing-an-app-repository-from-a-docker-image
- [2] Build from a tarball or zipball: https://dokku.com/docs/deployment/methods/git/#initializing-an-app-repository-from-an-archive-file
- [3] Dockerfile support: https://dokku.com/docs/deployment/builders/dockerfiles/
- [4] Heroku buildpack support: https://dokku.com/docs/deployment/builders/herokuish-buildpacks/
- [5] Cloud Native Buildpacks support: https://dokku.com/docs/deployment/builders/cloud-native-buildpacks/
- [6] Build via nix-build: https://github.com/jameysharp/dokku-builder-nixVery cool dude. Thanks for your work on this. I'll come back to dokku eventually :)
That's correct and it is still the case.
Re:Dokku – Free Heroku Alternative
by toomuchtodo on Saturday May 14, 2022 @06:42PM
(#31383414)
Would portainer be a good fit for adhoc manual execution of Docker containers on a remote host if a UI would be helpful?
Re:Dokku – Free Heroku Alternative
by beninsydney on Saturday May 14, 2022 @08:00PM
(#31383925)
I guess it comes down do your preference, it's just a GUI for Docker you can do the same Docker commands and container manipulation with or without it.
Specifically, dokku provides
- configuration management as env vars
- reverse proxy routing traffic for a given hostname to the correct container, swapping to the new container upon deploy
- plugin for tls cert generation using letsencrypt
- zero downtime deploys - it starts and smoke tests a new container before taking down the old one on deploy
- plugins for running databases and connecting your apps to them