# Multiple Nextcloud instances on Docker?

**URL:** <https://help.nextcloud.com/t/multiple-nextcloud-instances-on-docker/130279>\
**Category:** ℹ️ Support\
**Created:** [January 1, 2022, 3:35pm UTC](https://help.nextcloud.com/t/multiple-nextcloud-instances-on-docker/130279 "2022-01-01T15:35:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonDowner](https://help.nextcloud.com/letter_avatar/dondowner/32/5_5575768a8748004e209b776fc1b2916d.png) [@DonDowner](https://help.nextcloud.com/u/DonDowner)\
**Post date:** [January 1, 2022, 3:35pm UTC](https://help.nextcloud.com/t/multiple-nextcloud-instances-on-docker/130279/1 "2022-01-01T15:35:27Z")

</div>

Is it possible to run multiple instances of Nextcloud on one machine with Docker? I’m a complete Docker newbie.

I am about to install NC on a Synology NAS with Docker using a mix of [these intructions / tutorial](https://mariushosting.com/synology-how-to-install-nextcloud-using-docker/) and also [these other ones](https://jakupovic.org/wiki/syno-docker-nextcloud/) and I’m wondering if I would be able to have two different instances running at the same time. Each would need to be accessible with its own IP address in my LAN so that I can configure the reverse proxy on the NAS to route traffic to the correct instance.

Thanks for any guidance.

---

<div class="post-metadata">

**Author:** ![jk2018](https://help.nextcloud.com/letter_avatar/jk2018/32/5_5575768a8748004e209b776fc1b2916d.png) [@jk2018](https://help.nextcloud.com/u/jk2018)\
**Post date:** [January 1, 2022, 7:45pm UTC](https://help.nextcloud.com/t/multiple-nextcloud-instances-on-docker/130279/2 "2022-01-01T19:45:51Z")

</div>

Yes. You can run any number of instances behind a reverse proxy. Depending on your network configuration, you may need to make sure they have unique ports.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 1, 2022, 8:53pm UTC](https://help.nextcloud.com/t/multiple-nextcloud-instances-on-docker/130279/3 "2022-01-01T20:53:00Z")

</div>

it is definitely possible. I would recommend you to use different public hostnames e.g.

- mycloud.tld
- test-cloud.tld
- mypartents-cloud.tld

and duplicate important infrastructure like DB and redis for every instance. you can share heavy applications like collabora and coturn if you use them…

The approach gives you a chance to separate the instances and have a way to test things without touching your production…

my setup with docker-compose looks like this

![image](https://help.nextcloud.com/uploads/default/original/3X/0/1/011f2adc71788cd874bdd4e3132df627991adc5e.png)

- nc.mydomain.tld
- dev-nc,mydomain.tld

are separate docker-compose files (identical besides hostnames and RAM) located in different folders. other containers like traefik (reverse proxy), dns, collabora and coturn run in separated docker-compose applications…

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 4:18pm UTC](https://help.nextcloud.com/t/multiple-nextcloud-instances-on-docker/130279/4 "2024-09-23T16:18:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
