Lessons from Building a Node App in Docker
1–10 of 30 posts
Re: Lessons from Building a Node App in Docker
#2Re: Lessons from Building a Node App in Docker
#3Any reason why you wouldn't use some kind of supervision for your process when running it in production?
With newer docker (1.2 onwards - https://docs.docker.com/engine/admin/host_integration/) you can have a container restart policy which handles a lot of the simple cases where previously one might have used supervisor.
Baking restart policy into the container can be convenient (and was considered standard practice before restart policies), but has the downside that it's a bit less flexible in terms of how your container works in different environments.
Re: Lessons from Building a Node App in Docker
#4Any reason why you wouldn't use some kind of supervision for your process when running it in production?
https://docs.docker.com/compose/compose-file/#cpu-shares-cpu...
Re: Lessons from Building a Node App in Docker
#5Re: Lessons from Building a Node App in Docker
#6Re: Lessons from Building a Node App in Docker
#7Re: Lessons from Building a Node App in Docker
#8Re: Lessons from Building a Node App in Docker
#9https://imagelayers.io/?images=node:4.3.2 - I wonder how small we could get an image that's still capable of running node and having an extra user (Buildroot is root-only by default)
Re: Lessons from Building a Node App in Docker
#10I think it's brilliant that this gives security more prominence with setting up the unprivileged user. Pretty much every Docker post / article I've seen tends to skip over details like that.