Docker - Consul

Hello, i installed consul on my server, and i want to use to mesh docker containers, how can do it?

I want the containers to be able to connect with each other with domain like, container-01.home.internal