doc-pm2 icon indicating copy to clipboard operation
doc-pm2 copied to clipboard

Docker | Integration | PM2 Documentation

Open rmonnier9 opened this issue 6 years ago • 3 comments

https://pm2.io/doc/en/runtime/integration/docker/

PM2 - Guide, References, Tutorials and Best Practices about PM2 and Node.js.

rmonnier9 avatar May 30 '18 14:05 rmonnier9

pm2-docker is flaky in AWS ECS. It swallows the logs randomly. I see nothing but downside from having used it. Not against it locally, and I'm not trying to slam it, as it does what it does pretty well, but, for production environments deployed in ECS, I'd avoid it.

whatch avatar Sep 06 '18 03:09 whatch

@whatch pm2-docker is flaky in AWS ECS. It swallows the logs randomly. I see nothing but downside from having used it. Not against it locally, and I'm not trying to slam it, as it does what it does pretty well, but, for production environments deployed in ECS, I'd avoid it.

Thanks for the warning. I'm looking to use PM2 in production, so I probably won't go with the pm2-docker solution. By the way, was the pm2 NPM module any better than the Docker container?

henryjw avatar Feb 25 '19 21:02 henryjw

pm2-runtime only expect ecosystem.config in .json not .js, but WHY?

I mean, that here you are whiting CMD ["pm2-runtime", "ecosystem.config.js", "--web"] but it doesn't work, because he treats ecosystem.config.js as application, not configuration.

And if we take a look in runner file that is true https://github.com/Unitech/pm2/blob/master/lib/binaries/Runtime4Docker.js

Dionid avatar Apr 12 '19 10:04 Dionid