Comment on Best way to dockerize a static website?
smileyhead@discuss.tchncs.de 8 months agoServing static app in Caddy:
sudo apt install caddy sudo systemctl enable --now caddy
Then in /etc/caddy/Caddyfile:
example.com { root * /var/www/html file_server }
That’s all, really.
sudneo@lemmy.world 8 months ago
If there is already another reverse proxy, doing this IMHO is worse than just running a container and adding one more rule in the proxy (if needed, with traefik it’s not for example). I also build all my servers with IaC and a repeatable setup, so installing stuff manually breaks the model (I want to be able to migrate server with minimal manual action, as I had to do it already twice…).
The job is simple either way, I would say it mostly depends on which ecosystem someone is buying into and what secondary requirements one has.