Railway

Deploy Node.js

Minimal Node.js 20 HTTP service on Railway with health endpoint.

Deploy Node.js

Just deployed

Node.js for railway.app

Template Header

Minimal Node.js 20 HTTP service for Railway (Dockerfile deploy).

Deploy on Railway

๐Ÿ—๏ธ Architecture

flowchart LR
    Client(["๐ŸŒ Client"]) -->|HTTPS| Domain["Railway Public Domain"]
    Domain -->|"$PORT"| App["Container\nnode:20-alpine\n(server.mjs)"]

Environment

VariableDescription
PORTSet by Railway (defaults to 3000 locally)

Health

GET /health and GET / return 200 with body ok.

Local

docker build -t railwayapp-nodejs .
docker run --rm -p 3000:3000 railwayapp-nodejs

Airbyte Apache Airflow CloudBeaver CodiMD Django Email Service FastAPI Flask Flowise GitLab CE Grafana Home Assistant InfluxDB MJML MongoDB Mosquitto MQTT MySQL n8n Node.js Node-RED OpenSearch Open WebUI Outerbase Studio PostgreSQL Redis TYPO3 CMS


Template Content

More templates in this category

View Template
Rocky Linux
[Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. ๐Ÿš€

codestorm
40
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
51