# One Trellis Box - Multiple Sites on Individual VPS

**URL:** https://discourse.roots.io/t/one-trellis-box-multiple-sites-on-individual-vps/7784
**Category:** trellis
**Created:** 2016-10-02T05:53:05Z
**Posts:** 4

## Post 1 by @inthedeepend — 2016-10-02T05:53:05Z

I’ve seen this question asked a little around the discourse but am yet to find any solid knowledge on how to do it correctly.

**The Problem**  
I don’t want to run multiple Trellis instances for each of my sites. It gets super messy and previously led to terrible performance for me locally.

I have set up multiple working Development sites, but am now hoping to figure out deployment so each of the sites can sit on their own individual droplet/VPS.

How do I set up my hosts - staging/production file?

Thanks in advance.

---

## Post 2 by @bigsweater — 2016-10-04T19:12:19Z

> [@inthedeepend](#):
>
> I don’t want to run multiple Trellis instances for each of my sites. It gets super messy and previously led to terrible performance for me locally.
> 
> I have set up multiple working Development sites, but am now hoping to figure out deployment so each of the sites can sit on their own individual droplet/VPS.

Apologies if I’m misunderstanding: are you looking to set up multiple sites on a single Trellis box, or set up one Trellis box per site?

If you’re looking to set up multiple sites per box:

This is briefly [covered](https://roots.io/trellis/docs/wordpress-sites#normal-settings) in the Trellis docs.

You’d write your config for Trellis in `wordpress_sites.yml` for whichever environment you’re deploying to:

```
wordpress_sites:
  site1.com:
    site_hosts:
[etc]
  site2.com
    site_hosts:
[etc]
```

It even works if you have a Multisite install alongside a regular install, though the provision step on the multisite install [can be a little wonky](https://github.com/roots/trellis/issues/554).

I’ve currently got two personal sites on one DO droplet (the smallest, 512mb one), and one of the sites is a Multisite; I’ve not noticed any perceptible performance hits locally or on the Droplet.

---

## Post 3 by @inthedeepend — 2016-10-06T01:24:44Z

If I want each of the individual sites in wordpress\_sites to be deployed to their own VPS. How do you propose I set up up my hosts/production file?

---

## Post 4 by @thisolivier — 2016-10-06T01:40:09Z

That’s quite an unusual requirement, I imagine most people would consider those sites different projects. Unless you want the development server to have them all on one VM/Trellis, but in production you want them split across multiple servers? I’m just spitballing here, but using git submodules (pet love of mine) for the sites and trellis might solve that case.

> [@Best practice for multiple sites on multiple servers](https://discourse.roots.io/t/best-practice-for-multiple-sites-on-multiple-servers/5385/4):
>
> Sounds good, @fullyint. Thanks! I was looking at your suggestion on a previous post where you have a situation where you might have a client who owns multiple servers for different projects and wish to have only one trellis installation. -- trellis -- site1 -- site2 My hosts/production file will look like this. site1 ansible\_ssh\_host=IP1 site2 ansible\_ssh\_host=IP2 [production] site1 site2 [web] site1 site2 And I created the hosts\_folder like this: host\_vars -- site1 ---- wordpress\_sites…

[The above topic](https://discourse.roots.io/t/best-practice-for-multiple-sites-on-multiple-servers/5385) seems pretty relevant for you too, though I’ve never tried a config like the one mentioned.
