4 ms·
Why even use docker for a static website server?
by butz 5y ago
Why even use docker for a static website server?
- yrds96 5y ago"One command" production ready server
- megous 5y agoYou mean like `apt install nginx`? :)
- codegeek 5y agoI am not a fan of docker for everything but 'apt install nginx' would not give you https out of the box. I am beginning to like Caddy which comes with https enabled but I have never used it in production yet.
- megous 5y agoIf you want https you can just run certbot. It will bootstrap the nginx config. I dislike programs that change the configuration automatically, and thus run dehydrated instead of certbot, but running apt install nginx certbot and some certbot incantation to make it bootstrap your domains is not really any more bothersome, than having to figure out how docker works, and how to manage changes to my nginx config with it over time, etc..
- readingnews 5y agoI totally disagree with this reply, and agree with the thread starter... I really, really do not see the point of this. One command? Did you read the github page? At the end, this doc even has you hand editing your nginx for SSL?!? Why on earth... why not just use certbot automation? This seems totally counter to the idea. Again, am I being dense? Is this just "look what I can do with docker that makes my life more complicated"? Honestly, at this point it feels like more work for less output. This seems way harder than installing nginx and certbot, and now I have a hard dependency on docker and whatever else you pulled in.
- marginalia_nu 5y agoSeems like optimizing a thing that's already pretty quick and easy to set up (and using docker and similar does not mean you don't need to understand how nginx works).
- antongribok 5y agoTo learn a bit about Docker?
- oblak 5y agoSpawn a VM instead of mutilating your Pi?
- capableweb 5y agoHacking is called mutilating now? Give the guy/girl a break. I don't think this is meant to be a production setup so whatever is fine, and you can always reflash it if needed so not sure I'd call this "mutilation"
- NortySpock 5y agoYour docker-compose file becomes configuration-as-code, and it's a one-line change to set up different websites on different ports. Sure, I could install lighttpd myself, but docker-compose gives me a common configuration file format.
- nimbius 5y agoDocker is a hard dependency if you need your article on the front page of HN.