Default service discovery backend

What is the default service discovery backend used in swarm mode?

Is there any config templating engine build in or compatible with build-in discovery backend?

Thanks! :slight_smile: