basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
9.38k stars 357 forks source link

Expand on docker-setup.sample hook #861

Closed K4sku closed 1 week ago

K4sku commented 1 week ago

The docker-setup sample hook seemed a bit lackluster compared to other hook examples. Here is my idea how it can be improved.

It's using root user since this is what "default rails Docker" is using. It's idempotent, when network already exists (or not could not be created for some reason) it just prints error to stdout that is only visible with --verbose flag.