Scaling prosody,web,jicofo using docker/docker-compose/docker-swarm

I want to scale web, prosody and jicofo as I’m increasing the number of JVB’s in my setup. For every 5 JVb’s, I’m planning to add a new Jicofo and further web and prosody. If someone already achieved it using docker/docker-compose/docker-swarm then please share some thought about how to do it.

Also please share that what are things one should take care of when scaling all these services.
It would be a great help.