Node.js hosting
Deploy Express, Fastify, Hono, Koa or plain http servers as persistent processes on dedicated vCPU. Run queue workers and scheduled jobs alongside the web process, with managed PostgreSQL, MongoDB or Redis on the private network.
Build and run
- Detected by
- package.json with a start script
- Build
- npm ci && npm run build --if-present
- Start
- npm start
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "src/server.js"]Recommendations
- Listen on the PORT environment variable. 9live sets it and routes traffic to it.
- Define a worker process in 9live.toml to run BullMQ or similar on the same environment.
- Expose a /healthz route so deploys switch traffic only once the app is ready.
- Pin the Node.js version with the engines field in package.json or an .nvmrc file.
Plans
| Plan | Price | vCPU | Memory | NVMe | Databases | Backups |
|---|---|---|---|---|---|---|
| Launch | $149/mo | 8 | 16 GB | 160 GB | 1 | Daily, kept 7 days |
| Grow | $249/mo | 12 | 32 GB | 320 GB | 2 | Daily, kept 14 days |
| Scale | $349/mo | 16 | 48 GB | 500 GB | 3, plus a read replica | Hourly and daily, kept 30 days |
| Custom | On request | As required | Up to a full server | As required | As required | As required |
Questions
Do we need a Dockerfile to deploy Node.js?
No. 9live detects Node.js and builds it with a maintained buildpack. If your repository has a Dockerfile, we use it instead.
How are environment variables managed?
Set them per environment in the dashboard or with the CLI. They are encrypted at rest and injected at runtime. Connection strings for managed databases are added automatically.
What happens when a deploy fails?
If the build fails, or the new release fails its health check, the current release keeps serving traffic. You get a notification with the build or health-check logs.
Other frameworks
Talk to an engineer about your setup
Tell us what you run today and where it runs. We reply within one business day with a recommended plan and an estimate for the migration.
