{"id":19737978,"url":"https://github.com/devsu/docker-node-pm2","last_synced_at":"2025-02-27T22:20:07.056Z","repository":{"id":49196571,"uuid":"55367675","full_name":"devsu/docker-node-pm2","owner":"devsu","description":"Docker container with node and pm2","archived":false,"fork":false,"pushed_at":"2020-09-01T18:29:57.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-10T19:27:36.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-03T20:34:45.000Z","updated_at":"2024-03-18T02:28:22.000Z","dependencies_parsed_at":"2022-09-05T11:30:45.976Z","dependency_job_id":null,"html_url":"https://github.com/devsu/docker-node-pm2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsu%2Fdocker-node-pm2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsu%2Fdocker-node-pm2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsu%2Fdocker-node-pm2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsu%2Fdocker-node-pm2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsu","download_url":"https://codeload.github.com/devsu/docker-node-pm2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241067600,"owners_count":19903845,"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-11-12T01:12:57.696Z","updated_at":"2025-02-27T22:20:07.036Z","avatar_url":"https://github.com/devsu.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-node-pm2\nDocker container with node and pm2.\n\nInspired on [dashersw/docker-node-pm2](https://github.com/dashersw/docker-node-pm2).\n\n## Features\n\n- Allows to pass the path to the application declaration file, or the startup js file.\n- Allows to pass parameters to pm2 (and through it, to the app itself).\n- Can choose from different versions of node.\n- Volumes for the application code, and for the logs.\n\n## Usage\n\n```\ndocker run -d \\\n    --name my-awesome-app \\\n    -e APP=process.yml \\\n    -e PARAMETERS=\"--watch\" \\\n    -v /path/to/app/source:/var/app \\\n    -v /path/to/store/logs:/var/log/app \\\n    -p 3000:3000 \\\n    devsu/node-pm2:latest\n```\n\n### Explanation\n\n- Environment variables \n\t- **APP**: [application declaration file](http://pm2.keymetrics.io/docs/usage/application-declaration/). The default value is `process.yml`. You could directly call the script as well. (e.g. `APP=app.js`).\n\t- **PARAMETERS**: optional parameters to pass to pm2.\n- The code should be provided using a volume connected to `/var/app`.\n- Optionally, the logs can be connected using a volume connected to `/var/log/app`.\n- You might want to expose the 3000 port, to make the app. visible.\n- Change the image tag to use a different node version (e.g. `node4`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsu%2Fdocker-node-pm2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsu%2Fdocker-node-pm2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsu%2Fdocker-node-pm2/lists"}