Skip to content

Fully customisable HAProxy load balancer with HTTP/2 and ALPN support. Built on CentOS-7.

Notifications You must be signed in to change notification settings

joseanluo/docker-haproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAProxy Load Balancer

Build Status
GitHub Open Issues GitHub Stars GitHub Forks
Stars on Docker Hub Pulls on Docker Hub

HAProxy docker container million12/haproxy with ALPN and HTTP/2 support.

Build status (latest versions)
  • latest - Build Status
1.7.* 1.6.*
1.7.5 - Build Status 1.6.12 - Build Status
1.7.4 - Build Status 1.6.11 - Build Status
1.7.3 - Build Status 1.6.10 - Build Status
1.7.2 - Build Status 1.6.9 - Build Status
1.7.1 - Build Status 1.6.8 - Build Status
1.7.0 - Build Status 1.6.7 - Build Status
1.6.6 - Build Status
1.6.5 - Build Status
1.6.4 - Build Status

Tags

Please specify tag when deploying for specific version.
Example:

million12/haproxy:latest
million12/haproxy:1.6.4

Features

  • Support for HTTP/2 with ALPN
  • CentOS 7 based
  • Ability to provide any arguments to haproxy process
    Any extra parameters provided to docker run will be passed directly to haproxy command.
    For example, if you run docker run [run options] million12/haproxy -n 1000 you pass -n 1000 to haproxy daemon.
  • Pretty lightweight, only ~290M (with OpenSSL and HAProxy compiled from source).
  • Default haproxy.cfg provided for demonstration purposes. You can easily mount your own or point to different location using HAPROXY_CONFIG env.
  • Auto restart when config changes
    This container comes with inotify to monitor changes in HAProxy config and reload HAProxy daemon. The reload is done in a way that no connection is lost.

ENV variables

HAPROXY_CONFIG
Default: HAPROXY_CONFIG=/etc/haproxy/haproxy.cfg
If you mount your config to different location, simply edit it.

Usage

Basic

docker run -ti -p 80:80 -p 443:443 million12/haproxy

Mount custom config , override some options

docker run -d -p 80:80 -v /my-haproxy.cfg:/etc/haproxy/haproxy.cfg million12/haproxy -n 10000
Note: in this case config is mounted to its default location, so you don't need to modify HAPROXY_CONFIG variable.

Check version and build options

docker run -ti million12/haproxy -vv

Stats

The default URL for stats is http://CONTAINER_IP/admin?stats with username:password ser to admin:admin.

Authors

Author: Marcin ryzy Ryzycki ([email protected])
Author: Przemyslaw Ozgo ([email protected])

About

Fully customisable HAProxy load balancer with HTTP/2 and ALPN support. Built on CentOS-7.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%