# How to set redis DB ID in Docker container?

**URL:** <https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267>\
**Category:** Self-hosting\
**Created:** [January 24, 2017, 12:30pm UTC](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267 "2017-01-24T12:30:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rluba](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rluba/32/122710_2.png) [@rluba](https://meta.discourse.org/u/rluba)\
**Post date:** [October 17, 2018, 2:40pm UTC](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267/2 "2018-10-17T14:40:29Z")

</div>

I’ve got the same issue. I have an existing redis cluster (with replication and failover) that I want Discourse to use, but I can’t find a way to tell Discourse which database index to use.

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267)._
