# Next.js auf VPS hosten – Production Deploy Deutschland 2026

Next.js selbst hosten auf VPS: Node.js, PM2 oder Docker, Caddy/Traefik SSL, Environment Variables, CI/CD – ohne Vercel-Lock-in, Daten in Frankfurt.

**Kurzantwort:** Next.js Production auf VPS = `next build` + `next start` (oder Docker) hinter **Caddy/Traefik** mit SSL – volle Kontrolle, feste Kosten, Server in Deutschland.

**Wenn du hier landest:** Du willst weg von Platform-Lock-in oder brauchst DSGVO-konformes Hosting in Frankfurt.

## Schnellstart (PM2)

`curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
git clone … && cd app
npm ci && npm run build
npm i -g pm2
pm2 start npm --name next -- start
pm2 save && pm2 startup`
## Checkliste Production

- VPS 2–4 GB RAM Frankfurt → [VPS Guide](/de/root-v-server/vps-einrichten)
- Node 20/22 LTS installieren
- `npm run build` / Standalone Output
- Reverse Proxy + SSL → [Caddy](/de/root-v-server/caddy-reverse-proxy)
- Firewall 22/80/443 → [Firewall](/de/root-v-server/firewall-ports)
- Backups & Monitoring → [Uptime Kuma](/de/selbst-hosten/uptime-kuma-installieren)

## Docker Alternative

`# Dockerfile (standalone)
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/.next/standalone ./
COPY --from=build /app/.next/static ./.next/static
COPY --from=build /app/public ./public
EXPOSE 3000
CMD ["node", "server.js"]`
## Weiterführend

- [Docker Compose Production](/de/root-v-server/docker-compose-production)
- [CI/CD Automation](/de/ci-cd-automation)
- [Modern Web Stack](/de/modern-web-stack)
*VPS & Root Server: [VPS in Deutschland bestellen](https://nexorahost.com/Dedicated-server) · [panel.nexorahost.de](https://panel.nexorahost.de) · [nexorahost.com](https://nexorahost.com) (Maincubes FRA01 Frankfurt · Ryzen · NVMe · DSGVO)*
