Deploy Nginx
Official Nginx web server and reverse proxy, stable Alpine image
Nginx
Just deployed
Deploy and Host Nginx on Railway
Nginx is a fast, widely used web server, reverse proxy and load balancer.
About Hosting Nginx
This template runs the official nginx:stable-alpine image on port 80 and serves the default Nginx welcome page at your public URL. It is a starting point: to serve your own site or proxy to another Railway service, eject the template to your GitHub and add a Dockerfile that copies your files into /usr/share/nginx/html or your config into /etc/nginx/conf.d/.
Common Use Cases
- Serve a static website or single-page app
- Reverse proxy in front of other Railway services
- Add caching, redirects or custom headers to an app
Dependencies for Nginx Hosting
- One service; nothing else
Deployment Dependencies
Why Deploy Nginx on Railway?
Railway gives you a public HTTPS URL and automatic restarts with no server to maintain, so Nginx is online within a minute of deploying.
Template Content
Nginx
nginx:stable-alpine