# Is there a way to deploy multiple instances of Mattermost in one vps?

**URL:** <https://forum.mattermost.com/t/is-there-a-way-to-deploy-multiple-instances-of-mattermost-in-one-vps/13964>\
**Category:** Troubleshooting\
**Created:** [August 31, 2022, 8:09pm UTC](https://forum.mattermost.com/t/is-there-a-way-to-deploy-multiple-instances-of-mattermost-in-one-vps/13964 "2022-08-31T20:09:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkboy](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Junkboy](https://forum.mattermost.com/u/Junkboy)\
**Post date:** [August 31, 2022, 8:09pm UTC](https://forum.mattermost.com/t/is-there-a-way-to-deploy-multiple-instances-of-mattermost-in-one-vps/13964/1 "2022-08-31T20:09:09Z")

</div>

Hey everyone,

I’m wondering if there is a way to run multiple instances of Mattermost server in one VPS I mean maybe 2 teams or 2 clients hosted in the same VPS but independent Mattermost server and different ports but same VPS, IP, etc.

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [August 31, 2022, 8:14pm UTC](https://forum.mattermost.com/t/is-there-a-way-to-deploy-multiple-instances-of-mattermost-in-one-vps/13964/2 "2022-08-31T20:14:28Z")

</div>

Yes, absolutely no problem. You will need separate directories and databases per instance as well as separate listening ports.  
F.ex,:

Instance 1  
Application directory: /opt/mattermost1  
Database: mattermost1  
Port: 8001

Instance 2  
Application directory: /opt/mattermost2  
Database: mattermost2  
Port: 8002

And you will need one nginx in front of both instances that will reverseproxy the domain „[mattermost1.com](http://mattermost1.com)“ to „localhost:8001“ and „[mattermost2.com](http://mattermost2.com)“ to „localhost:8002“.
