Hacker News new | past | comments | ask | show | jobs | submit login

I've cobbled together some scripts around docker compose that largely solves these problems for me (https://github.com/mnahkies/shoe-string-server)

It basically looks for a custom external hostname property which is used to generate the haproxy configuration and issue SSL certs.

For ports I personally prefer to just use a consistent container port as much as possible (eg: 80) - I'm sticking a reverse proxy in front of everything anyway so no need for unique ports bound to the host that I won't remember.

Data I basically just bind mount into a structure that I can easily backup from the host. I've also managed to do some major postgres upgrades without any issue (https://github.com/mnahkies/shoe-string-server/blob/master/d...)

I wouldn't call this approach production grade - I'm very much in the use managed Kubernetes/SQL camp there, but it's been working great for my personal needs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: