{"id":17968415,"url":"https://github.com/dashersw/docker-node-pm2","last_synced_at":"2025-03-25T09:30:57.371Z","repository":{"id":20047595,"uuid":"23315952","full_name":"dashersw/docker-node-pm2","owner":"dashersw","description":"A pm2 application container for docker.","archived":false,"fork":false,"pushed_at":"2018-01-01T23:32:16.000Z","size":11,"stargazers_count":75,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-20T00:41:03.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"zuazo/chef-local-docker","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dashersw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-25T14:11:29.000Z","updated_at":"2022-10-10T10:41:02.000Z","dependencies_parsed_at":"2022-08-31T13:51:00.414Z","dependency_job_id":null,"html_url":"https://github.com/dashersw/docker-node-pm2","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashersw%2Fdocker-node-pm2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashersw%2Fdocker-node-pm2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashersw%2Fdocker-node-pm2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashersw%2Fdocker-node-pm2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashersw","download_url":"https://codeload.github.com/dashersw/docker-node-pm2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245435051,"owners_count":20614819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T14:21:17.808Z","updated_at":"2025-03-25T09:30:57.365Z","avatar_url":"https://github.com/dashersw.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a very simple docker image with pm2, the process manager installed.\n\nThe image will use `/app` folder as the place for the source code and the working directory, so you should provide your app as a volume, i.e;\n\n    -v /path/to/app/source:/app\n\nAlso, the executable (app entry js file) should be noted as the environment variable APP. The default value for APP variable is `app.js`.\n\nIf you would like to enable files watching for any code changes, please set environment variable WATCH to `true`. The default value for WATCH variable is `false`. \n\nThe container exposes 80 and 443 ports so you can bind to them.\n\nSo a complete command for running a node.js application with pm2 could be;\n\n    docker run -d -e \"APP=app.js\" -e \"WATCH=true\" -p 3000:80 -v /path/to/app/source:/app dashersw/node-pm2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashersw%2Fdocker-node-pm2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashersw%2Fdocker-node-pm2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashersw%2Fdocker-node-pm2/lists"}