Public Repository

Last pushed: 2 years ago
Short Description
contains haproxy with ssl configuration
Full Description

HAProxy set up with SSL activated with self signed certificate

Description

the haproxy original image comes from dockerfile/haproxy and has been edited in order to have ssl redirection activated to an outer server in order to handle ssl connection and then forwading request in http

How-To

First, you would need to edit the /etc/haproxy/haproxy.cfg on the image in order to have the redirection to the right server :

sudo docker run -i -t redboul/haproxy-ssl /bin/bash
[ root@<CONTAINER_ID>:/etc/haproxy ]$ vim /etc/haproxy/haproxy.cfg

and change the server IP on the last line
you can either, launch the haprocy server directly :

You now need to save the container image to launch the haproxy container as a daemon with port mapped to your machine. To do so, 'exit' the docker shell. and commit the container :

sudo docker commit -m 'udpate server ip address' CONTAINER_ID redboul/haproxy-ssl:mine

Then, launch the saved image with port options :

sudo docker run -d -p 80:80 -p 443:443 redboul/haproxy-ssl:mine /bin/bash /haproxy-start

HAProxy server is now up as if it were on your machine and it can listen to https request and send them to your server in http

Further Information

the SSL certificate is located in /etc/ssl/docker.io

Docker Pull Command
Owner
redboul

Comments (0)