Multiple Nextcloud instances on Docker?

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

  • 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…

1 Like