HAproxy: dynamic count of hosts for scalability

Is it possible to configure a range of ports in HAproxy?

I mean if I want to scale docker containers and first I want to run e.g. 50 containers and with docker-compose I scale up to 500. Is it possible to configure HAproxy, so that it dynamical knows how much containers (or hosts) it has for load balancing?

  • Why Docker does not destroy the hidden layers?
  • Docker stops responding after I run a java program inside it
  • AngularJS and NodeJS app in Docker
  • Can't access docker container on port 80 on OSX
  • How to setup local Docker development with virtual host?
  • Securing local docker private registry
  • Connecting to ElasticSearch plugin under proxy settings
  • Docker - Unable to use placeholders inside ENTRYPOINT
  • Should instances of a horizontally scaled microservice share DB?
  • Move file from Docker container to Host system in Jenkins
  • How to fit docker in this architecture?
  • docker pull push not working post successful login
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.