aschmidt75 / haproxy-docker-config

Configuring haproxy to automatically redirect to docker instances
MIT License
54 stars 4 forks source link

docker containers on multiple servers #3

Open milesrichardson opened 10 years ago

milesrichardson commented 10 years ago

If haproxy is on one server, and I want to load balance containers on multiple servers, is this possible?

aschmidt75 commented 10 years ago

afaik of now, the docker network is local to the server it is running on. So you cannot communicate across servers, unless you do things like iptables forward/nat, but that introduces more problems than it solves :-) Maybe you want to take a look at etcd, i.e. http://coreos.com/docs/ section cluster management.