nextjs-docker-pm2-nginx icon indicating copy to clipboard operation
nextjs-docker-pm2-nginx copied to clipboard

Discouraged use of pm2 in a Dockerfile

Open advename opened this issue 2 years ago • 0 comments

I've read through one of your readers posts that mentioned your implementation of using pm2 instead of npm to run the server.

I was curious to why, since IIRC pm2 restarts the server upon server error, a feature that docker already does on its own. Upon further research, I found out that even Docker themselves discourage the usage of pm2.

I would therefore advise reconsidering using pm2 in this repo and in your blog post :)

advename avatar Oct 10 '22 09:10 advename