---
title: "Deploy Nginx"
description: "Official Nginx web server and reverse proxy, stable Alpine image"
category: "Starters"
url: https://railway.com/deploy/nginx-1
---

# Deploy Nginx

Official Nginx web server and reverse proxy, stable Alpine image

**[Deploy Nginx on Railway](https://railway.com/template/nginx-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/nginx-1/manifest.json

- **Creator:** GitHub Locker
- **Category:** Starters
- **Total deploys:** 1

## Template content

### Nginx

- **Image:** nginx:stable-alpine
- **Public domain:** Yes

## Documentation

# Deploy and Host Nginx on Railway

[Nginx](https://github.com/nginx/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

- [Nginx on GitHub](https://github.com/nginx/nginx)
- [Docker image](https://hub.docker.com/_/nginx)

## 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.


## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/nginx-1
