HAProxy
| Description / name | Input element |
|---|---|
| Container Registry | |
| Container Configuration Root Path | |
| Timezone | |
| User ID | |
| Group ID | |
| HAProxy Host Port | |
| HAProxy /config Path |
Reliable, high performance TCP/HTTP load balancer and reverse proxy.
| Port | 80 |
| Registry | ghcr.io/daemonless/haproxy |
| Daemonless | daemonless/haproxy |
| Source | haproxy/haproxy |
| Website | www.haproxy.org |
Version Tags
| Tag | Description | Best For |
|---|---|---|
3.4 / 3.4-pkg-latest / <version> / latest / pkg / pkg-latest |
HAProxy 3.4 release branch installed from FreeBSD latest packages. | Most users — recommended. |
3.3 / 3.3-pkg-latest / <version> |
HAProxy 3.3 release branch installed from FreeBSD latest packages. | Alternative build. |
3.2 / 3.2-pkg-latest / <version> / lts |
HAProxy 3.2 LTS release branch installed from FreeBSD latest packages. | Alternative build. |
3.0 / 3.0-pkg-latest / <version> |
HAProxy 3.0 LTS release branch installed from FreeBSD latest packages. | Alternative build. |
2.8 / 2.8-pkg-latest / <version> |
HAProxy 2.8 LTS release branch installed from FreeBSD latest packages. | Alternative build. |
2.6 / 2.6-pkg-latest / <version> |
HAProxy 2.6 LTS release branch installed from FreeBSD latest packages. | Alternative build. |
devel / devel-pkg-latest |
HAProxy development edge release branch installed from FreeBSD latest packages. | Alternative build. |
3.4-lua / 3.4-lua-pkg-latest / <version>-lua / lua |
HAProxy 3.4 release branch with Lua scripting enabled. | Alternative build. |
3.3-lua / 3.3-lua-pkg-latest / <version>-lua |
HAProxy 3.3 release branch with Lua scripting enabled. | Alternative build. |
3.2-lua / 3.2-lua-pkg-latest / <version>-lua |
HAProxy 3.2 LTS release branch with Lua scripting enabled. | Alternative build. |
3.0-lua / 3.0-lua-pkg-latest / <version>-lua |
HAProxy 3.0 LTS release branch with Lua scripting enabled. | Alternative build. |
2.8-lua / 2.8-lua-pkg-latest / <version>-lua |
HAProxy 2.8 LTS release branch with Lua scripting enabled. | Alternative build. |
2.6-lua / 2.6-lua-pkg-latest / <version>-lua |
HAProxy 2.6 LTS release branch with Lua scripting enabled. | Alternative build. |
3.4-wolfssl / 3.4-wolfssl-pkg-latest / <version>-wolfssl / wolfssl |
HAProxy 3.4 release branch built with WolfSSL TLS engine. | Alternative build. |
3.3-wolfssl / 3.3-wolfssl-pkg-latest / <version>-wolfssl |
HAProxy 3.3 release branch built with WolfSSL TLS engine. | Alternative build. |
3.2-wolfssl / 3.2-wolfssl-pkg-latest / <version>-wolfssl |
HAProxy 3.2 LTS release branch built with WolfSSL TLS engine. | Alternative build. |
3.0-wolfssl / 3.0-wolfssl-pkg-latest / <version>-wolfssl |
HAProxy 3.0 LTS release branch built with WolfSSL TLS engine. | Alternative build. |
Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions, including the security model for host vs. container privileges.
Deployment
Save as compose.yaml, then run podman-compose up -d.
Save as run.sh, then run sh run.sh.
Save as haproxy-deploy.yaml, then run ansible-playbook haproxy-deploy.yaml.
Warning
Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.
Save the files above, then run appjail-director up.
Save the files above, then run sh run.sh.
Experimental
Bastille's OCI support is experimental. It requires buildah and shares the host network stack (inherit). Mount volumes with --volume HOST JAIL; without it, image-declared volumes are stored under ${bastille_volumesdir}/${jail}.
Save as bastille-compose.yml, then run bastille up.
Interactive Configuration
Parameters
Environment Variables
| Variable | Default | Description |
|---|---|---|
PUID |
1000 |
User ID for the application process |
PGID |
1000 |
Group ID for the application process |
TZ |
UTC |
Timezone for the container |
Volumes
| Path | Description |
|---|---|
/config |
Configuration directory containing haproxy.conf |
Ports
| Port | Protocol | Description |
|---|---|---|
80 |
TCP | HTTP Listener |
443 |
TCP | HTTPS Listener (optional) |
8404 |
TCP | HAProxy Stats Page (optional) |
Implementation Details
- Architectures: amd64
- User:
bsd(UID/GID set via PUID/PGID). Defaults to1000:1000. - Base: Built on
ghcr.io/daemonless/base(FreeBSD 15.1).
Need help? Join our Discord community.