doc-pm2
doc-pm2 copied to clipboard
Docker | Integration | PM2 Documentation
https://pm2.io/doc/en/runtime/integration/docker/
PM2 - Guide, References, Tutorials and Best Practices about PM2 and Node.js.
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 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?
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