Public Repository

Last pushed: 2 years ago
Short Description
HAProxy with confd-service listening to etcd
Full Description

HAProxy Docker-Container with confd

This container comes with a confd-service which will listen
for the change of etcd resources located at "/services/webserver", update the haproxy-config accordingly and reload the haproxy-service after a change has occured

Run container

docker run --name haproxy sandorkan/haproxy

Default etcd endpoint

10.1.42.1:4001

This can be set in the 'start_service' script directly
or via environment variables. Check out the 'start_service'
file

How to add or remove webservers to etcd

etcdctl set /services/webserver/172.16.0.1:80 172.16.0.1:80
etcdctl rm /services/webserver/172.16.0.1:80
Docker Pull Command
Owner
sandorkan

Comments (0)