MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Multiple server instances -- one server and multiple config files, or multiple Docker instances?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 454 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JS999
      last edited by

      Greetings, all.

      Hopefully this is a quick question… If I wanted to have multiple instances of the MM server (so one can serve out one kind of web page; the second serves out a different web page; etc) on a single box, is there a right or wrong way to do this?

      Searching the forums, I see some old discussion about creating three sets of config files then (presumably) having three instances of the server, each one using its own config file.

      Given that Docker has come on the scene relatively recently, would it make more sense to have three Docker sessions and one MM server per Docker session (so that scripts and such wouldn’t have to be copied and modified)…?

      Thoughts?

      Thanks.

      -Jon

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @JS999
        last edited by

        @js999 u can install the mm code in separate folders too

        MagicMirror1
        MagicMirror2
        etc

        then , like docker, the configs are unique files

        u still need a unique port per instance

        rin npm start server

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • karsten13K Offline
          karsten13
          last edited by

          you can do it with or without docker, thats your choice.

          With docker you have to use different config.js files, they can be placed in the same folder and must be mapped into the right container.

          You could use only one modules folder for all instances by installing all modules there.

          Updating the core is done by using a new docker image (same for all instances).

          The one-modules-folder may also could be established with the classic setup, you could use symlinks from a central place into the modules folder of the several instances (never tested this!).

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy