cachapa / tudo

A simple to-do app
Apache License 2.0
88 stars 11 forks source link

Dockerize web builds #30

Open cachapa opened 1 year ago

cachapa commented 1 year ago

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.

bo0tzz commented 1 year ago

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.

cachapa commented 1 year ago

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.