Local Secure CockroachDB Cluster on Docker

I spent a good chunk of an afternoon wrestling with TLS certificates and Docker networking to get a secure, multi-node CockroachDB cluster running on my local machine. I’m writing this down mostly so I don’t have to figure it out all over again, and hopefully, it saves you some time too. The main takeaway? It’s totally doable, and it’s a great way to experiment with a distributed SQL setup. Also, you will almost certainly mess up a SAN (Subject Alternative Name) in a certificate at least once....

April 14, 2024 Â· Shubham Srivastava