yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

PM2 integration? #35

Closed katopz closed 8 years ago

katopz commented 8 years ago

Refer to https://www.digitalocean.com/community/tutorials/how-to-migrate-a-parse-app-to-parse-server-on-ubuntu-14-04

Seem like I need PM2 there. The question is, Is PM2 suppose to run inside or outside docker? And should it install with docker compose or manually do it? Or maybe PM2 job alike already done somewhere so I am no need PM2 here?

Thanks

yongjhih commented 8 years ago

PM2 is a loading balancer for node service cluster. I think it's not necessary, but it's effective for loading balancing.

About node process manager alternatives for example:

// normal
$ node index.js
// pm2 as worker for loading balance
$ pm2 index.js
// forever for monitor
$ forever index.js
// nodemon for monitor
$ nodemon index.js
katopz commented 8 years ago

Thanks! I've a lot to learn here. ^^

Sadmansamee commented 7 years ago

How did you use pm2 with docker? enlight me please. @katopz @yongjhih

samwize commented 7 years ago

@Sadmansamee A few changes to Dockfile should get pm2 to run. Read http://pm2.keymetrics.io/docs/usage/docker-pm2-nodejs/