Thursday 16 March 2017

How do you run your Node.js apps in Docker in production?

I do it like this:1) In docker-compose.yml I run an app via npm scripts:command: npm run start:prod2) In my package.json I just use forever:"start:prod": "NODE_ENV=production forever src/server"Without docker, pm2 looks pretty interesting, but it's not clear for me how to use it with docker. How do you run your Node.js apps in Docker in production?

Submitted March 16, 2017 at 06:40PM by serge-nikitin

No comments:

Post a Comment