# How to run separate web and data containers?

**URL:** https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361
**Category:** Support
**Created:** [March 15, 2015, 2:23pm UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361 "2015-03-15T14:23:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![toutestici](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toutestici/32/115789_2.png) [@toutestici](https://meta.discourse.org/u/toutestici)
#### Post date: [March 15, 2015, 2:23pm UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361/1 "2015-03-15T14:23:01Z")

</div>

Hi,

I want to use multisite with Discourse, I read it’s better to run separate web and data containers. I don’t know how to do that, can you explain me ? I have installed Discourse on a Digital Ocean droplet by following the official guide.

Thank you very much for your help 😘

---

<div class="post-metadata">

### Author: ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)
#### Post date: [March 15, 2015, 5:15pm UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361/2 "2015-03-15T17:15:07Z")

</div>

There are plenty of topics on this exact subject already, and although it may take some figuring out if you’re a newbie, you should find some information to start [here](https://github.com/discourse/discourse_docker)

This topic may also prove useful: [How to use Docker multiple containers without exposing ports](https://meta.discourse.org/t/how-to-use-docker-multiple-containers-without-exposing-ports/22283)

If you’ve followed the official guide then you’ll know about the discourse docker repository. In that, you had to edit an app.yml file. That contains all the information the launcher script needs to build a web, redis and postgres container in one.

Instead of using app.yml, there are other samples that you can use which are data.yml and web\_only.yml. Guess what these do? 😉

Go ahead and have a play. You will need a full day or two to understand everything that’s going on and configure things. If you’re still struggling after all that then post back here and I’ll help you as much as I can.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 15, 2015, 8:25pm UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361/3 "2015-03-15T20:25:20Z")

</div>

If you’re only doing a 2-site multisite, you’ll probably be just fine with a single container multisite. @sam - should probably change the multisite guide to say that single-container is fine for some uses

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 18, 2018, 7:02am UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361/4 "2018-09-18T07:02:21Z")

</div>



---

<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: [September 18, 2018, 11:56pm UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361/5 "2018-09-18T23:56:15Z")

</div>

Howto is here:

> [@Move from standalone container to separate web and data containers](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413):
>
> warning This is an advanced setup. Don’t follow this unless you are experienced with Linux server administration and Docker. You also need to pay close attention to commits to discourse\_docker to make sure you notice if there’s a version bump for postgres or redis. Converting your Current Setup I managed to migrate to two containers. If anyone else needs instructions, this is how it worked for me. The process includes backup, setting up separate web and data containers and restore data. …

---

<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: [September 18, 2018, 11:56pm UTC](https://meta.discourse.org/t/how-to-run-separate-web-and-data-containers/26361/6 "2018-09-18T23:56:20Z")

</div>


