# Run cockroachdb in secure mode using docker compose

**URL:** <https://forum.heroiclabs.com/t/run-cockroachdb-in-secure-mode-using-docker-compose/1088>\
**Category:** Game Design\
**Created:** [October 28, 2020, 11:25pm UTC](https://forum.heroiclabs.com/t/run-cockroachdb-in-secure-mode-using-docker-compose/1088 "2020-10-28T23:25:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SirBuildsALot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sirbuildsalot/32/375_2.png) [@SirBuildsALot](https://forum.heroiclabs.com/u/SirBuildsALot)\
**Post date:** [October 28, 2020, 11:25pm UTC](https://forum.heroiclabs.com/t/run-cockroachdb-in-secure-mode-using-docker-compose/1088/1 "2020-10-28T23:25:18Z")

</div>

Hi, does anyone know how to run cockroachdb in secure mode using docker compose?  
I’ve tried using “–certs-dir” instead of “–insecure” in the docker-compose file but it gives me an error saying that it cannot load certificates. Anyone know what I’m supposed to do?

---

<div class="post-metadata">

**Author:** ![volvox](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@volvox](https://forum.heroiclabs.com/u/volvox)\
**Post date:** [October 29, 2020, 12:12am UTC](https://forum.heroiclabs.com/t/run-cockroachdb-in-secure-mode-using-docker-compose/1088/2 "2020-10-29T00:12:55Z")

</div>

I am investigating same thing
