Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 704 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 704 Bytes

HAProxy Docker Image

In order to use version 2.2+ we must replace reqrep with http-request replace-path. HAProxy Community Docs v2.2

Running

Use the docker-compose.yml file with docker-compose to deploy the container. The image requires a configuration file named haproxy.cfg with your cluster settings and a ssl pem certificate called haproxy.pem.

# Generate the certificate
openssl pkcs12 -in cnpem.br.pfx -out cert.pem -nokeys -clcerts

# Generate the private key
openssl pkcs12 -in cnpem.br.pfx -out key.pem -nocerts -nodes

# Append key and crt
cat cert.pem > haproxy.pem
cat key.pem >> haproxy.pem