pm2 Docker & Self-Hosted Deployment

GitHub

Node.js/Bun Production Process Manager with a built-in Load Balancer.

43,227 stars JavaScript JavaScript 1 file ยท ~2,228 tokens #command-line#command-line-tool#deploy#load-balancer#monitoring#node#nodejs#pm2
1. Pull Image (DOCKERHUB) docker pull Unitech/pm2:latest
2. Docker Run (1-Click Launch) docker run -d --name pm2 --restart always unitech/pm2:latest
3. Podman Run podman run -d --name pm2 --restart always unitech/pm2:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/unitech/pm2:latest
5. ORAS Pull (OCI Artifact) oras pull unitech/pm2:latest
examples/docker-pm2/Dockerfile
FROM keymetrics/pm2:latest-alpine

# Bundle APP files
COPY ./app /app
WORKDIR /app

# Install app dependencies
ENV NPM_CONFIG_LOGLEVEL warn
RUN npm install --production

ENV KEYMETRICS_SECRET xxxx
ENV KEYMETRICS_PUBLIC yyyy

CMD [ "pm2-runtime", "process.config.js" ]