# How to deploy two mattermos-server on same ububtu machine with separate docker dependencies?

**URL:** <https://forum.mattermost.com/t/how-to-deploy-two-mattermos-server-on-same-ububtu-machine-with-separate-docker-dependencies/9974>\
**Category:** Troubleshooting\
**Created:** [June 17, 2020, 11:05am UTC](https://forum.mattermost.com/t/how-to-deploy-two-mattermos-server-on-same-ububtu-machine-with-separate-docker-dependencies/9974 "2020-06-17T11:05:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkirpalsih](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rajkirpalsih](https://forum.mattermost.com/u/rajkirpalsih)\
**Post date:** [June 17, 2020, 11:05am UTC](https://forum.mattermost.com/t/how-to-deploy-two-mattermos-server-on-same-ububtu-machine-with-separate-docker-dependencies/9974/1 "2020-06-17T11:05:43Z")

</div>

Hi Friends,  
I want to deploy two mattermost-server on same ubuntu machine.  
How can I achieve it ?  
I tried to deploy two server with two different ports but the docker dependencies are getting shared across both server. So, when I fire **make stop** command then both the servers dependencies are getting stopped.

Is there any way to deploy two server on same machine ?

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [June 22, 2020, 4:22am UTC](https://forum.mattermost.com/t/how-to-deploy-two-mattermos-server-on-same-ububtu-machine-with-separate-docker-dependencies/9974/2 "2020-06-22T04:22:46Z")

</div>

Hello, @rajkirpalsih

This topic was discussed in the [Multiple instances on one server](https://forum.mattermost.com/t/multiple-instances-on-one-server/7968) before. Can you provide more insight on the use case of this deployment?

Is there any specific reason behind the 2 Mattermost Server in the same Ubuntu Machine? Additionally, what method did you use to deploy the instances? Were you referring to [https://docs.mattermost.com/install/install-ubuntu-1804.html](https://docs.mattermost.com/install/install-ubuntu-1804.html) or other documentations?

---

<div class="post-metadata">

**Author:** ![rajkirpalsih](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rajkirpalsih](https://forum.mattermost.com/u/rajkirpalsih)\
**Post date:** [June 22, 2020, 7:24am UTC](https://forum.mattermost.com/t/how-to-deploy-two-mattermos-server-on-same-ububtu-machine-with-separate-docker-dependencies/9974/3 "2020-06-22T07:24:05Z")

</div>

Hi Ahmaddanial,  
I deploy two mattermost-server on same ubuntu machine using the developer setup steps for Team Edition of mattermost.  
I have created separate databases in the mysql docker image.  
Also have separate port for the respective server.  
Using the local file system for the storage in the ./data directory.

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [June 23, 2020, 12:36am UTC](https://forum.mattermost.com/t/how-to-deploy-two-mattermos-server-on-same-ububtu-machine-with-separate-docker-dependencies/9974/4 "2020-06-23T00:36:45Z")

</div>

Hello, @rajkirpalsih

Got it. I am including this information in the topic I shared above so the users will have more visibility on the installation architecture of your Mattermost. Thanks.
