docker/fig — pull request #764 by denverdino (2014-12-31 12:59:32+00:00)
Title: Support the Fig template on docker swarm 

The current Fig can only support the single Docker host deployment. To enable it work on Docker Swarm,

1. Add the logic to let Fig detect if it works on single node mode or cluster mode in fig/utils.py
2. Enable Fig work properly with new container naming convention with host name from cluster mode in fig/container.py and fig/service.py
3. Modify the logic of container creation for port binding to make swarm scheduler can handle the port conflicting.

To enable the fully function work on Docker Swarm, there will be some changes in the cluster scheduling and network connectivity for cross-host linking. There are also other fixes for Swarm in https://github.com/denverdino/swarm

And there is one sample Vagrant project to setup the Docker Swarm cluster with changes in Docker Swarm to handle the cross-host linking with Ambassador pattern, and it will also create the flat network among the Docker containers across the cluster.

Please refer the project in https://github.com/denverdino/docker-swarm-vagrant

Thanks and Happy New Year!