Git Product home page Git Product logo

Comments (1)

ReinerNippes avatar ReinerNippes commented on July 27, 2024
2\. Where is it defined that the port number for nextcloud is 80 and that of ssl is 443.

That is defined in the traefik.toml line 6 & 11.


2\. Can I change this and have multiple containers running on the same machine?

With a lot of work. Maybe.

If you want to run different nextcloud instances on different ports you have to define for each one another entrypoint. Like it's done for onlyoffice.

So traefik will listen on all these ports. That's the easy part.

Now you have to find all container tasks needed to setup a nextcloud instance.

That is at least nextcloud + nginx (in case you use the fpm container).

You have to give the container different namens (nextcloud00, nextcloud01, nextcloud02, ...)

You have to make sure that they all use different data and config folders

and you have to modify the config tasks.

docker exec --user www-data nextcloud php occ maintenance:install

as you can see in the command above the container name is always "nextcloud".

When I was writing this playbook I didn't had a multi nextcloud environment in mind.

The good news: You look at the playbook ReinerNippes/selfhosted_on_docker.

There you can define a set of nextcloud instances.

  - name: nextcloud00
    type: nextcloud
    server_fqdn: nextcloud00.{{ base_domain }}
    collabora:   true
    collabora_dictionaries: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
    onlyoffice:  true
    talk:        true
    talk_server: base.{{ base_domain }}
  - name: nextcloud01
    type: nextcloud
    server_fqdn: nextcloud01.{{ base_domain }}
    collabora:   true
    collabora_dictionaries: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
    onlyoffice:  true
    talk:        true
    talk_server: base.{{ base_domain }}
  - name: nextcloud02
    type: nextcloud
    server_fqdn: nextcloud02.{{ base_domain }}
    collabora:   true
    collabora_dictionaries: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
    onlyoffice:  true
    talk:        true
    talk_server: base.{{ base_domain }}

Nevertheless they won't run on different ports but different dns names.

from nextcloud_on_docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.