Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

haproxy-confd

Docker container running HAProxy backed by confd.

Run an app on IP address: 172.16.0.10:80.
Advertise it on etcd:

etcdctl set /services/myapp/mydomain.dev '{"ip":"172.16.0.10", "port": "80"}'

Configure a default backend:

etcdctl set /services/default '{"app":"myapp", "hostname":"mydomain.dev"}'

Add a certicate for your default backend and mount it!

ls /data/server-wide/haproxy/approved-certs/mydomain.dev.pem
/usr/bin/docker run\
--name haproxy-confd\
-p 80:80\
-p 443:443\
-v /data/server-wide/haproxy/approved-certs/:/etc/haproxy/approved-certs/\
pierreozoux/haproxy-confd

And voilà!

Docker Pull Command
Owner
michielbdejong