Most orchestration scenarios using dockers need dynamic load-balancing. Support for a built-in dynamic load-balance option in the docker-compose.yml file would be awesome !
For example, in the .yml below a support for a “loadbalance” option with load-balancing policy could be:
Now, if docker-compose is run using the following commands:
docker-compose scale web=10
the load-balancer should send the requests to the webapp instances in round-robin fashion.
(May be the load-balancer could be pluggable)