Self-host Nginx on a VPS
The Nginx web server on the official Alpine image, serving a persistent web root. It starts with the default welcome page; put your site files in the web root volume through the app's Files.
levelrail-cli templates install nginx --name my-nginxSpecification
- Status
- Listed
- Category
- Infrastructure
- Services
- nginx
- Ports
- 80
- Volumes
- 1
- Memory
- about 64 MiB
- arm64
- unknown
- amd64
- unknown
- Settings to fill in
- none
- License
- Permissive license, BSD-2-Clause
- Listing
- Community template
About Nginx
The Nginx web server on the official Alpine image, serving a persistent web root. It starts with the default welcome page; put your site files in the web root volume through the app's Files.
What it deploys
Nginx runs as one service in a single Compose app, listening on port 80, with 1 named volume mount.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| nginx | nginx | 1.27.2-alpine | 80 | nginx_html -> /usr/share/nginx/html |
Before you install
- CPU architecture. arm64 unknown. The scan could not read a manifest or the tag is chosen at install time. This is not a claim either way.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
Settings and environment
You do not have to fill in anything. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| nginx | TZ | Preset by the template |
First run
- Open the address to see the welcome page, then replace the files in /usr/share/nginx/html with your site.
Install Nginx on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get nginx -
Install it
This template has an install form, so the CLI fills each setting from --env, a generated secret or its default.
levelrail-cli templates install nginx --name my-nginxTo put a service behind a domain at install, add
--domain SERVICE=HOST:levelrail-cli templates install nginx --name my-nginx --domain nginx=nginx.example.com
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Nginx.
Docs and upstream
More in Infrastructure
- Nginx Proxy ManagerA web UI for managing Nginx reverse-proxy hosts, redirects, and Let's Encrypt certificates.
- NetBoxSource-of-truth IPAM and DCIM for tracking IP space, racks, devices, and cabling.
- netboot.xyzNetwork boot menu for installers and rescue tools, served by the official container with its web configuration page and asset mirror.
- NATSA lightweight messaging server for pub/sub, request/reply and durable streams, with JetStream persistence enabled.
- NSQA realtime distributed message queue with a lookup daemon, a queue daemon and the nsqadmin web page, run together. Producers and consumers in this project connect to nsqd:4150 and nsqd:4151.
- MeshCentralA remote device management server with web-based desktop, terminal and file access, plus agents for Windows, Linux and macOS. Apache-2.0 licensed. The first account you register becomes the server admin, so register it before sharing the address. Set the host name to your public domain so agents can find the server.