nextjs-docker-pm2-nginx
nextjs-docker-pm2-nginx copied to clipboard
Discouraged use of pm2 in a Dockerfile
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 :)