Docker swarm, Consul, Zookeeper

Hi,

How to create a discovery service for consul and zookeeper, who can i store a key values in consul and how can i recognize container scheduling on which node