Skip to content

michielbdejong/docker-haproxy-confd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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à!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%