Kick off a software project quickly.

Logo Node.js Stack

Node.js Stack

Node.js, PM2, Nginx and a database — a production environment for your JavaScript APIs and apps.

2 GB RAM 1 vCPU Available

Tech stack

Node.js LTSPM2NginxNVMPostgreSQL
Minimum RAM2 GB
Minimum CPU1 vCPU
Compatible OSubuntu-24.04

The Node.js Stack template provides a production-ready environment for your JavaScript and TypeScript applications: Node.js LTS, PM2 as the process manager, Nginx as a reverse proxy, and PostgreSQL or MongoDB depending on your needs. PM2 handles clustering, automatic restarts and monitoring of your Node processes.

Whether you deploy an Express/Fastify API, a NestJS application or a WebSocket server, this template configures the essential components — log management, multi-core clustering, secure environment variables — so you can focus on your code.

Key features

Node.js LTS (recommended stable version)
PM2 for clustering, monitoring and automatic restart
Nginx reverse proxy with header management
PostgreSQL and secure environment variables
NVM installed to switch Node versions easily
PM2 and Nginx logs configured with rotation

When to use this solution?

1

Node.js REST API

Deploy an Express, Fastify or NestJS API in production with PM2 cluster mode to use every CPU core.

2

Real-time application

Host a WebSocket server or a Socket.io application with PM2 handling restarts automatically.

3

Full-stack JavaScript backend

A server for a Next.js, Nuxt (SSR) or Remix application in production mode.

Deploy Node.js Stack on your VPS

Guide optimized for ServOrbit Cloud VPS.

01

Create the VPS

Select the "Node.js Stack" template when ordering. Minimum 2 GB RAM.

02

Deploy your application

Clone your repository, install the dependencies with npm ci --production, and build if needed.

03

Start with PM2

Launch with pm2 start app.js --name "mon-api" -i max for cluster mode. Save with pm2 save and pm2 startup.

04

Configure Nginx

Edit the Nginx virtualhost to point to your Node application's port. SSL with Certbot.

Frequently asked questions

The latest stable LTS version. NVM is available to switch versions easily depending on your project's needs.

Kick off a software project quickly.

Activate Node.js Stack on your infrastructure.

Dedicated Cloud VPS — IPv4 included, European datacenter, support included. Your data never leaves your server.

Recommended configuration: 2 GB RAM · 1 vCPU

Need help?

Browse our help center and FAQ, or write to our team — support in French, English and Arabic.