This is the swarm node based setup
docker swarm init --advertise-addr eth0
docker swarm join --token ###TOKEN### IP:2377
docker swarm join-token
docker network create -d overlay my-network
docker stack deploy -c "compose-file" "stack name"
#ldap-stack
This Stack will bring up LDAP and LDAP PHP admin docker containers Can be used effectively with swarm and non swarm mode
docker swarm deploy -c docker-compose-ldap.yml ldap
docker-compose -f docker-compose-ldap.yml up
This stack will bring up the Swarm vizualiser which can be useful to vizualize th stack
docker stack deploy -c docker-compose-swarm-visualizer.yml swarm-visualizer