MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Mathes75
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 16
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Version 2.34.0 - Missing X Server or $DISPLAY (Docker version of MMOS)

      @karsten13
      Back to function! Several restarts without blank screen!

      Output of docker compose config - in case it is useful…

      name: magicmirror
      services:
        labwc:
          container_name: labwc
          environment:
            LAB_WC_HIDE_CURSOR: "true"
            RANDR_PARAMS: ""
            RANDR_POLL: 1m
            XDG_RUNTIME_DIR: /tmp/labwc
          image: karsten13/labwc:latest
          networks:
            default: null
          privileged: true
          restart: always
          volumes:
            - type: bind
              source: /tmp/labwc
              target: /tmp/labwc
              bind: {}
            - type: bind
              source: /run/udev
              target: /run/udev
              bind: {}
        magicmirror:
          container_name: mm
          depends_on:
            labwc:
              condition: service_healthy
              restart: true
              required: true
          environment:
            DISPLAY: unix:0.0
            ELECTRON_ENABLE_GPU: "0"
            MM_CUSTOMCSS_FILE: css/custom.css
            MM_MODULES_DIR: modules
            MM_OVERRIDE_DEFAULT_MODULES: "true"
            MM_SCENARIO: electron
            MM_SHOW_CURSOR: "false"
            WAYLAND_DISPLAY: wayland-0
            XDG_RUNTIME_DIR: /tmp/labwc
          image: karsten13/magicmirror:latest
          network_mode: host
          privileged: true
          restart: always
          shm_size: "268435456"
          volumes:
            - type: bind
              source: /tmp/.X11-unix
              target: /tmp/.X11-unix
              bind: {}
            - type: bind
              source: /home/pi/.Xauthority
              target: /home/node/.Xauthority
              bind: {}
            - type: bind
              source: /tmp/labwc
              target: /tmp/labwc
              bind: {}
            - type: bind
              source: /opt/mm/mounts/config
              target: /opt/magic_mirror/config
              bind: {}
            - type: bind
              source: /opt/mm/mounts/modules
              target: /opt/magic_mirror/modules
              bind: {}
            - type: bind
              source: /opt/mm/mounts/css/custom.css
              target: /opt/magic_mirror/css/custom.css
              bind: {}
          post_start:
            - command:
                - /bin/sh
                - -c
                - |
                  if [ "init" = "init" ]; then
                    # update volume permissions
                    chown -R 1000:1000 config modules css/custom.css
                    chmod -R 777 config modules css/custom.css
                  fi
                  if command -v node_modules/.bin/electron > /dev/null; then
                    # if electron is installed then start dbus-daemon to avoid errors in the logs
                    dbus-daemon --system || true
                  fi
              user: root
      networks:
        default:
          name: magicmirror_default
      
      
      posted in Troubleshooting
      M
      Mathes75
    • 1 / 1