Open the server Apps tab
Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment.


Production-ready Next.js application (requires existing Next.js project with package.json)
Add your server credentials to Server Compass
Choose from our template library
Fill in settings and click Deploy
Use the Next.js template in Server Compass to deploy a generated starter app on your VPS, then verify the app loads in a browser.
Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment.

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Use the template picker search to find Next.js in the Server Compass template catalog.

Choose the Next.js template. Server Compass fills the compose services, variables, and build settings for this template.

Confirm the app name and generated settings. In this run, the app was named nextjs-demo.

Review the generated compose settings, confirm the port check passes, and click Deploy.

Keep the deployment modal open while Server Compass uploads files, starts containers, and verifies the stack.

After deployment finishes, return to the Apps tab and confirm the Next.js app is marked Running.

Open the application URL in a browser. The loaded Next.js page confirms the template is reachable.

Next.js loaded successfully at http://167.233.138.53:3000/.
Use the Next.js template in Server Compass to deploy a generated starter app on your VPS, then verify the app loads in a browser.
The tutorial used host port 3000, mapped to container port 3000.
No. The deployment guide should live on the Next.js template detail page and be linked from the reusable template deployment docs page.
Deploy Next.js the traditional way with SSH and Docker Compose.
Launch your preferred terminal and connect to your VPS using SSH.
# Log into your server
ssh root@<your-server-ip>
# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh
Prepare a directory for your application files and configuration.
# Create and navigate to project directory
mkdir -p ~/apps/nextjs
cd ~/apps/nextjsCreate the Docker Compose configuration file with these contents:
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- HOSTNAME=0.0.0.0
- NEXT_TELEMETRY_DISABLED=1
restart: unless-stopped
PORTHost port to expose(default: 3000)Launch the application stack using Docker Compose.
# Deploy the application
docker compose up -d
# Check container health
docker compose ps
# Monitor logs
docker compose logs -f --tail=100Enable external access by opening the necessary port.
# Allow the application port through firewall
sudo ufw allow 3000/tcp
sudo ufw reload
# Access your app at:
# http://your-server-ip:3000Server Compass makes deploying Next.js effortless. Visual setup, one-click deploy, done.
After deploying Next.js with Server Compass, complete these steps to finish setup
Test the application
Set up reverse proxy for HTTPS
Need help? Check out our documentation for detailed guides.
Common questions about self-hosting Next.js
Simply download Server Compass, connect to your VPS, and select Next.js from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
Next.js requires a minimum of 512MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Next.js backup and restore procedures.
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Next.js image will be pulled and deployed with zero downtime.
Next.js is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Open-source backend in a single file with realtime database, auth, and file storage

Open-source backend-as-a-service - self-hosted Firebase alternative

Open-source backend framework with dashboard

Full Supabase self-hosted with Kong, GoTrue Auth, Realtime, and Studio
Download Server Compass and deploy Next.js to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass