This repository houses unofficial Docker images for PM2, the advanced, production process manager for Node.js. These images are built as newer versions are released and the official keymetrics/pm2 repository is no longer maintained.
Disclaimer: This is an unofficial repository and not directly affiliated with or endorsed by the official PM2 or Keymetrics teams.
Alpine:
22,22-alpine,latest-alpine,alpine,latest- Alpine Dockerfile20,20-alpine- Alpine Dockerfile18,18-alpine- Alpine Dockerfile16,16-alpine- Alpine Dockerfile
Bookworm:
22-bookworm,latest-bookworm,bookworm- Bookworm Dockerfile20-bookworm- Bookworm Dockerfile18-bookworm- Bookworm Dockerfile16-bookworm- Bookworm Dockerfile
Slim:
22-slim,latest-slim,slim- Slim Dockerfile20-slim- Slim Dockerfile18-slim- Slim Dockerfile16-slim- Slim Dockerfile
To use these Docker images, you can pull them directly from Docker Hub and use them in your Dockerfiles or docker-compose files.
FROM tyrese3915/pm2:latest
# Your application's setup
COPY . /app
WORKDIR /app
# Install dependencies and build your app
RUN npm install
# Start your app using PM2
CMD ["pm2-runtime", "start", "ecosystem.config.js"]version: '3.8'
services:
app:
image: tyrese3915/pm2:latest
volumes:
- .:/app
working_dir: /app
command: pm2-runtime start ecosystem.config.jsFor those interested in building their own image from this repository, you can clone the repository and build using Docker commands.
git clone https://github.com/tyrese3915/pm2-docker.git
cd pm2-docker
bash build-and-push.shContributions to improve the images or add new versions are welcome! Please submit an issue or pull request with your suggestions.
This project is under MIT License - see the LICENSE file for details.
- Thanks to the PM2 team for their excellent process manager.
- This project is inspired by the official but no longer maintained keymetrics/pm2 repository.