Mutal TLS between containers with docker ca

Hi I have two containers and I’d like to secure the communication between them with TLS using mutual auth.

I figured this must be pretty common, and there would be some pattern to follow but haven’t found anyway. One option I was considering was mounting the docker swarm CA in the containers as a secret, and using that to self sign certs in both containers.

Does that seem like a reasonable approach, or are there to many gotchas ?

Does anyone else have good suggestions on how to achieve this?