# HAProxy Alpine

HAProxy Alpine is a lightweight, Alpine Linux-based Docker image for HAProxy, the open-source TCP and HTTP load balancer, providing high-availability reverse proxying, traffic distribution, and SSL termination for. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5057/haproxy-alpine

## Description

HAProxy Alpine is a lightweight, Alpine Linux-based Docker image for HAProxy, the open-source TCP and HTTP load balancer, providing high-availability reverse proxying, traffic distribution, and SSL termination for homelab and production environments.

## Platform availability

Available on 0 of 10 platforms.

## Health score

67/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 24 days ago)
- Popular: 32 (40 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 85 (no serious findings, CI)

## Links

- GitHub: https://github.com/haproxytech/haproxy-docker-alpine
- Docker Hub: https://hub.docker.com/r/haproxytech/haproxy-alpine

## Common questions

### Why does HAProxy appear to start but stop in an Alpine container?

Make HAProxy the main foreground process in the container. Running it after other services can leave the container without a persistent process to keep it running.

### How do I specify the HAProxy config file and when should I add -W -S?

Start HAProxy with -f followed by your config file. Add -W -S only if your container setup expects a master socket, since a missing or invalid config can prevent startup and a missing socket can break management tools or health checks.

### Why can incoming requests fail even though HAProxy is running?

Each frontend must point to a backend using default_backend, and each backend must list reachable server addresses. Use server-template for repeated servers to reduce typos in server names or ports.

### What edge-exposure issue should I consider for haproxy:3.1-alpine?

HAProxy terminates TLS, load-balances every inbound connection, and is the first thing an attacker reaches. A stock haproxy:3.1-alpine container can score 63/100 in a hardening context, so hardening should be reviewed.

## Alternatives

- BunkerWeb: BunkerWeb is a self-hosted, open-source web application firewall and NGINX-based web server that protects services with secure-by-default s…
- Cloudflare: Protects websites with front-end proxy, dynamic DNS, CDN, and firewall; blocks DDoS and targeted attacks, optimizes traffic, and analyzes t…
- Envoy Gateway: Envoy Gateway is an open-source project that manages Envoy Proxy as a standalone or Kubernetes-based application gateway.
- Fossorial Pangolin: Open-source identity-based remote access platform using WireGuard, offering unified management, tunneled connections, granular access contr…
- Haproxy: HAProxy is a TCP proxy and a HTTP reverse proxy.
- Nginx Proxy Manager: Nginx Proxy Manager is a self-hosted reverse proxy and web server that lets you expose home or small-office applications to the internet wi…
- Træfik Proxy: The Cloud Native Application Proxy Simplify networking complexity while designing, deploying, and operating applications.
- netoptimizer™: NetOptimizer is a Windows utility that automatically adjusts network, telemetry, and service settings to reduce overhead and improve browsi…
- nginx: Nginx is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy server.
- npmplus: NPMplus is an improved fork of Nginx Proxy Manager that provides a web interface for managing reverse proxy rules, SSL certificates, and ap…
- zoraxy: Zoraxy is a free, open-source, general-purpose reverse proxy and TCP/UDP forwarding tool for home servers and homelabs.

---
Source: Our Local Host (https://ourlocalhost.com/app/5057/haproxy-alpine), the self-hosted and open-source app directory.
