# Linking containers for a multiple container setup

**URL:** https://meta.discourse.org/t/linking-containers-for-a-multiple-container-setup/20867
**Category:** Self-hosting
**Created:** [October 7, 2014, 6:04am UTC](https://meta.discourse.org/t/linking-containers-for-a-multiple-container-setup/20867 "2014-10-07T06:04:50Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![ernsheong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ernsheong/32/108797_2.png) [@ernsheong](https://meta.discourse.org/u/ernsheong)
#### Post date: [January 9, 2015, 6:23am UTC](https://meta.discourse.org/t/linking-containers-for-a-multiple-container-setup/20867/5 "2015-01-09T06:23:12Z")

</div>

Maybe [Use multiple Docker containers without exposing ports](https://meta.discourse.org/t/how-to-use-docker-multiple-containers-without-exposing-ports/22283) is what you are looking for, i.e. if you link to the `data` container then both `DISCOURSE_DB_HOST` and `DISCOURSE_REDIS_HOST` should both be set to `data`

---

_[View the full topic](https://meta.discourse.org/t/linking-containers-for-a-multiple-container-setup/20867)._
