Should you install nginx inside docker? -
i wondering pros , cons of having or not having nginx within docker image. there plenty of tutorials on how install nginx on docker, asking is, should or should not?
should install nginx on docker host, , have point individual running containers (which running rainbows etc.)? or
should install nginx layer within containers?
i don't see benefit of having nginx within docker containers, wonder why there many tutorials on that, if that's mutual sense, , not getting mutual sense, frustrates me.
edit:
the less config per container improve me. if there's tight coupling between nginx container , app container behind it, not solution looking for, , beats purpose of having containers in first place. why leaning toward having nginx installed on docker host.
if have nginx container, container should independent of apps. app-specific configuration, such port numbers , ip addresses, number of worker processes, client_max_body_size
should not configured container unless can customized when executing docker run
.
this may closed sentiment based, it's worth sentiment docker should involved in networking transport layer (tcp/udp) no higher (http). no should not install nginx reverse proxy straight on docker host straight , yes should install nginx within container(s) if want features nginx provides.
you decide want nginx container in front end of each of applications (this seems in harmony overall thought of containerization , separation , not sharing things), or 1 nginx container reverse proxy several apps hosted in containers on same host (simpler overall, more tightly coupled , perhaps less harmonious docker's philosophy). take phusion style , set both application , it's nginx in same container, provides nice coherent unit, otherwise against mutual case of 1 process tree per container.
nginx docker lxc
No comments:
Post a Comment