Node.js – How to Restart a Docker Container After a Crash
I’m currently working on a Node.js application that runs within a Docker container. I wanted the container to auto-restart whenever it crashed and I found out that this task could be accomplished with tools like PM2 and forever.
I decided to give PM2 a try. Unfortunately, it kept restarting the container in an …