MagicMirror trixie Container
1.5K
A lightweight, customizable Docker image for MagicMirror², designed for Raspberry Pi and ARM-compatible devices. Easily extend MagicMirror with your own modules, styles, and configuration using volume mounts.
config.js, custom.css, and modulesThis assumes you have some working knowledge of linux environments
Before running the MagicMirror Docker container, you need to install Docker on your system.
To install Docker on your Raspberry Pi, follow these steps:
sudo apt-get update
sudo apt-get upgrade -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
Then, log out and log back in, or reboot your Raspberry Pi.
Check if Docker is installed correctly:
docker --version
sudo systemctl start docker
sudo systemctl enable docker
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce -y
docker --version
sudo usermod -aG docker $USER
Log out and log back in, or reboot your system.
docker --version
docker --version
my-magic-mirror-container <-- name this to whatever you want
├── config/
│ └── config.js
├── custom-css/
│ └── custom.css
├── modules/
│ ├── MMM-ExampleModule/ <-- These are all you modules that you want to run
│ └── ...
Inside the root level of the folder create your own docker-compose.yml file
services:
magicmirror:
image: mumblebaj/magicmirror:latest
container_name: magicmirror
ports:
- "8080:8080"
volumes:
- ./config:/home/pi/MagicMirror/config
- ./custom-css:/home/pi/MagicMirror/css/custom
- ./modules:/home/pi/MagicMirror/custom-modules
restart: unless-stopped
Place your config.js inside the ./config directory.
Place your custom.css inside the ./custom-css directory.
Clone or add modules to the ./modules directory.
For the modules, ensure that you have run npm install in each module directory.
docker compose up -d
http://localhost:8080 <-- check in your config.js what the address is set to. Ensure that ipWhitelist: [],
docker compose down -v
This project is licensed under the MIT License. See LICENSE for details.
Pull requests and issues are welcome. Feel free to fork and improve!
LICENSE (MIT)MIT License
Copyright (c) 2025 [mumblebaj]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Content type
Image
Digest
sha256:5924f8730…
Size
369.4 MB
Last updated
3 months ago
docker pull mumblebaj/magicmirror