Self-host HAProxy on a VPS
High-performance TCP and HTTP load balancer on the official image. The install form carries haproxy.cfg as an editable file, so it starts with a working config instead of exiting on a missing one.
levelrail-cli templates install haproxy --name my-haproxySpecification
- Status
- Listed
- Category
- Infrastructure
- Services
- haproxy
- Ports
- 8080
- Volumes
- 0
- Memory
- about 64 MiB
- arm64
- unknown
- amd64
- unknown
- Settings to fill in
- none
- License
- Copyleft license, GPL-2.0
- Listing
- Community template
About HAProxy
High-performance TCP and HTTP load balancer on the official image. The install form carries haproxy.cfg as an editable file, so it starts with a working config instead of exiting on a missing one.
What it deploys
HAProxy runs as one service in a single Compose app, listening on port 8080.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| haproxy | haproxy | 3.0.5-alpine | 8080 | none |
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
The catalog lists no environment variables for this template.
First run
- Open the address to see the greeting, then edit the config file setting to add your own frontends and backends.
Install HAProxy 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 haproxy -
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 haproxy --name my-haproxyTo put a service behind a domain at install, add
--domain SERVICE=HOST:levelrail-cli templates install haproxy --name my-haproxy --domain haproxy=haproxy.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 HAProxy.
Docs and upstream
More in Infrastructure
- HeadscaleSelf-hosted Tailscale control server, configured entirely through environment variables. Embedded DERP and STUN are off (the platform has no UDP), so clients relay through the public Tailscale DERP map over HTTPS. Create users and pre-auth keys with the CLI in the container (headscale users create, headscale preauthkeys create).
- imgproxyA fast image processing server that resizes, crops and converts images on the fly from signed URLs. Apache-2.0 licensed. A signing key and salt are generated for you, so only URLs signed with them are served.
- Kong GatewayAn API gateway in database-less mode on the open source image. Load routes with the admin API at kong:8001 from inside this project. With no routes the proxy answers 404, which is the healthy state.
- KrakenDStateless high performance API gateway on the official image. The install form carries krakend.json as an editable file, so it starts with a working route table instead of exiting on a missing config.
- etcdA distributed key-value store for configuration and coordination, running as a single member.
- Envoy ProxyCloud native edge and service proxy on the official image. The install form carries envoy.yaml as an editable file, so it starts with a working listener instead of exiting on a missing config.