cachapa / tudo

A simple to-do app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerize web builds

cachapa opened this issue · comments

I'm not sure what the standard for web app containers is. I guess it should include a web server and (optional?) certificate handling.

I'm quite happy with Caddy as it handles the certificate stuff transparently, but would be happy with other solutions as well, e.g. nginx.

commented

Just building FROM a webserver image and copying in the build should do the trick. My (opinionated) view is that certificates are better left to an extra reverse proxy set up by whoever is running the deployment, but either approach is possible.

You seem to be more experienced in this topic than me so I defer to you. Having the reverse proxy handling the certificates seems perfectly fine to me, as that's how I host my apps anyway.