Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
[Discussion] Node.js in Docker for production #161
Comments
|
Hi @FWirtz, Have you checked out the Node.js Docker Best Practices - the link is kind of hidden in the Docker guide. |
Starefossen
added
the
question
label
Apr 25, 2016
FWirtz
commented
Apr 25, 2016
•
|
Hi @Starefossen, you are right, there are some more Tips that I have not taken into account |
davidbnk
commented
Apr 25, 2016
|
I had also a hard time finding good tips on workflow and production recommendations. Some good ones I found:
Some interesting stuff: http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html (very good) |
FWirtz
commented
Apr 25, 2016
|
Wow. Thats awesome. Thank you very very much. I didnt have time to read all David Benko notifications@github.com schrieb am Mo., 25. Apr. 2016 17:04:
|
|
Great list @davidbnk! |
davidbnk
commented
Apr 27, 2016
|
@FWirtz No problem! |
FWirtz
commented
May 1, 2016
|
@davidbnk Wow david, that list and the articles really are awesome - THANK YOU!!! |
Starefossen
self-assigned this
May 1, 2016
Magnitus-
commented
May 11, 2016
•
|
"might use node index.js over npm start (Thanks @pesho src )" |
schmod
commented
Jan 25, 2017
•
If your application launches through a shell script, or spawns children via In addition to all that, this is a good time to make sure that your application intercepts and handles SIGTERM correctly, and calls (On that note, it's also worth remembering that, by default, docker only waits 5 seconds for the process to exit after sending SIGTERM before it sends SIGKILL. This is a very short amount of time, which can be a problem for applications that require more time to exit cleanly.) |
FWirtz commentedApr 23, 2016
So, in the official guide it states that the Dockerfile is not ment for production, however there is just very little information on what a production environment whould actually look like.
I am curious now and really want to create a list of differences in here.
So far I've got the following:
A production environment
But what else really would there be?
This Issue is more of a discussion, evolved from PR666 and is mostly aimed at @nodejs/docker