Public | Automated Build

Last pushed: a year ago
Short Description
HAProxy powered by consul-template
Full Description

HAProxy container powered by consul-template

This dockerfile creates a haproxy 1.6 (latest) container with consule-template application installed.
Whenever you will run this container consul-template will contact your docker SWARM consule template and generates HAproxy configuration based on your local DNS entries.

How to build this contenier?

docker build -t my-reverse-proxy-with-consul-template

How to run it?

docker run -d --name my-proxy -p 8080:8080 my-reverse-proxy-with-consul-template

How to verify that it is working?

docker ps -a

How to verify haproxy.cfg file generated by consule-template?

docker exec container-id cat /etc/haproxy/haproxy.cfg

... I will add more - promise :)

Docker Pull Command
Owner
zerodowntime

Comments (0)