Deployment on Swarm Cluster on Laptop

Hi,

I was new to rancher and trying out to create a simple swarm cluster with a set of services on multiple hosts.

Host 1 - service-discovery service
Host 2 - gateway registered to service-discovery running on Host 1
Host 3 - microservice 1 resisted to service-discovery running on Host 1

Host 2 will have public access listening on port 8765

Now I should be able to access the microservice 1 API via Host 2 gateway.

For the above use case, can any of you suggest the possible docker-compose configuration/steps, I should execute.

All the host were creasted using docker-machine & virtualbox running on windows 8.1.

Thanks
Anvesh