This file contains two definitions, the main container with apache and php installed and the container with haproxy
# docker-compose up -d
# docker-compose ps
Name Command State Ports
-------------------------------------------------------------------------------------------------
looptalks_ha_1 python /haproxy/main.py Up 1936/tcp, 443/tcp, 0.0.0.0:80->80/tcp
looptalks_php5_1 /bin/sh -c /usr/sbin/apach ... Up 0.0.0.0:32773->80/tcp
Now run
# docker-compose scale php5=n
Where n is the number of nodes
Before load the changues you need run
# docker-compose down
or only
# docker-compose up -d --force-recreate --no-deps ha