• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Magic Mirror on Rancher

Scheduled Pinned Locked Moved General Discussion
13 Posts 4 Posters 2.5k Views 4 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.
  • W Offline
    Wmsmckay @sdetweil
    last edited by Wmsmckay Aug 12, 2021, 11:30 PM Aug 12, 2021, 11:29 PM

    @sdetweil I have a VM running Rancher, Kubernetes and Docker at 10.0.0.16. I deployed a service running the Magic Mirror image from that on port 8075. When I navigate to 10.0.0.16:8075 I get nothing.

    I have other service running on the stack that I can reach just fine e.g. pihole, mysql databases, a web server.

    S 1 Reply Last reply Aug 12, 2021, 11:34 PM Reply Quote 0
    • S Offline
      sdetweil @Wmsmckay
      last edited by Aug 12, 2021, 11:30 PM

      @wmsmckay the container cannot use it’s host address directly

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Wmsmckay
        last edited by Aug 12, 2021, 11:34 PM

        @wmsmckay so mm config inside the container says port 8080, address:“0.0.0.0”, ipWhitelist:[]

        and u map that to 8075 on the host

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        W 1 Reply Last reply Aug 12, 2021, 11:39 PM Reply Quote 0
        • W Offline
          Wmsmckay @sdetweil
          last edited by Aug 12, 2021, 11:39 PM

          @sdetweil Corrent. I used the docker image above which maps port 80 in the container to an external port on the host which I set to 8075.

          The config file is set to the default which is

          var config = {
            address: "0.0.0.0", // Address to listen on, can be:
            port: 8075,
            ipWhitelist: [], // Set [] to allow all IP addresses
          
          S 1 Reply Last reply Aug 12, 2021, 11:55 PM Reply Quote 0
          • S Offline
            sdetweil @Wmsmckay
            last edited by sdetweil Aug 13, 2021, 12:07 AM Aug 12, 2021, 11:55 PM

            @wmsmckay no, inside the container it’s port 80

            the mapping is done outside, nat translation
            the app inside doesn’t know

            app configured to port 80
            docker does nat and exposes that on the docker host as 8075 (-p 8075:80)

            this is exactly the same as if u wanted your mm on a pi, exposed to the internet
            8080 on pi, router says map requests from 8075 on internet to port 8080 on the pi.

            pi doesn’t know

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            W 1 Reply Last reply Aug 13, 2021, 1:33 AM Reply Quote 0
            • W Offline
              Wmsmckay @sdetweil
              last edited by Aug 13, 2021, 1:33 AM

              @sdetweil Right. I have that port mapped but when I navigate to host:8075, I just get an error.

              In my logs it says

              Ready to go! Please point your browser to: http://0.0.0.0:8075
              

              But going to 10.0.0.16:8075 there is nothing there.

              S 2 Replies Last reply Aug 13, 2021, 1:36 AM Reply Quote 0
              • S Offline
                sdetweil @Wmsmckay
                last edited by Aug 13, 2021, 1:36 AM

                @wmsmckay but mm needs to be set to port 80, right? that’s what the docker setup does, right?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Wmsmckay
                  last edited by sdetweil Aug 13, 2021, 1:53 AM Aug 13, 2021, 1:42 AM

                  @wmsmckay you should be able to docker inspect xxxxxx, where xxxxxx is the container id to get the container IP address. typically 172. something.

                  then u can use browser on docker host to the container IP and the mm port.

                  that proves the container config is right for the mm config

                  then you can check the host port, localhost:8075, and the inspect will show u the port mapping definition. should show what is in the compose file

                  then u can go to another machine

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Aug 13, 2021, 5:08 PM Reply Quote 0
                  • K Offline
                    karsten13 @sdetweil
                    last edited by Aug 13, 2021, 5:08 PM

                    I have been using this docker image and setup to create the container, which works.

                    this docker image is not maintained anymore, meanwhile the image build fails so the image is old without containing security fixes. Also this image does not contain the latest mm version v2.16.0.

                    I deployed a service running the Magic Mirror image from that on port 8075.

                    can you show us this service? kubectl get service <service-name> -o yaml

                    I wrote a helm chart for running mm in k8s, you find it here.

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 1 / 2
                    1 / 2
                    • First post
                      9/13
                      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