# 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:** 1

<div class="post-metadata">

**Author:** ![TomekB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomekb/32/66593_2.png) [@TomekB](https://meta.discourse.org/u/TomekB)\
**Post date:** [January 24, 2017, 12:30pm UTC](https://meta.discourse.org/t/how-to-set-redis-db-id-in-docker-container/56267/1 "2017-01-24T12:30:23Z")

</div>

I have one data container and I would like to use several web\_only containers (several forums on separate servers). How to I pass a DB ID to web\_only container so that multiple forums use their own cache?

Without this the stats reported in Admin → Reports are mixed up between different forums.

---

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