# 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:** [Janeiro 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:** 4

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Outubro 17, 2018, 11:28pm UTC](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267/4 "2018-10-17T23:28:14Z")

</div>

Definitely do not do anything like this 🔥 . Message Bus which is responsible for long polling relies on pub/sub, pub/sub is always on “db 0” not configurable.

If you try to co-host multiple Discourses on one Redis DB expect some very major amount of breakage.

---

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