4 ms·
Installing Docker to run a web server is crazy to me.
by k_bx 3y ago
Installing Docker to run a web server is crazy to me.
- amanzi 3y agoSeems unnecessary to me - I would only consider running Caddy in Docker if the web application it was serving was also in Docker. Installing Caddy without Docker is pretty straight-forward - I have a basic Ansible playbook that does this with just 5 tasks.
- francislavoie 3y agoYep, I agree, only need to run Caddy in Docker if you're planning to use Docker for things Caddy will serve. Our docs cover many installation methods, most commonly used is our apt or rpm repos, which run Caddy as a systemd service. See https://caddyserver.com/docs/install https://caddyserver.com/docs/install
- Rebelgecko 3y agoOke thing I really like about caddy is that it's super easy to use it to expose a bunch of docker-compose services to the Internet, with HTTPS, compression, and all that jazz. It helps avoid weird stuff I've ran into with other web servers like "oh, this nginx feature requires you import some random dudes packages because the official version doesn't enable it, and if the random dude and the official package versions ever diverge everything breaks"