A custom MagicMirror² setup delivered as a Docker image, based off https://github.com/bastilimbach/docker-MagicMirror.
There are 2 Dockerfiles available, one to build a node:alpine and one to build a node:buster based image.
docker build ./ -f Dockerfile-alpine -t hypest/magic_mirror_hypest:x.x.x
and to build the node:buster based image use:
docker build ./ -f Dockerfile-buster -t hypest/magic_mirror_hypest:x.x.x-buster
docker run -d \
--publish 80:8080 \
--restart always \
--volume /etc/localtime:/etc/localtime:ro \
--env MM_LANGUAGE="<your language of choice. Example: el>" \
--env MM_CALENDAR_URL="<URL to your Google Calendar .ics>" \
--env MM_OMW_LOCATION_STRING="<OpenWeatherMap City String. Example: Peraia, GR>" \
--env MM_OMW_LOCATION_ID=<OpenWeatherMap city ID. Example: 734712> \
--env MM_OMW_APP_ID="<Your OpenWeatherMap app id. Get yours from https://openweathermap.org/appid>" \
--name magic_mirror_hypest \
hypest/magic_mirror_hypest
Create a modules
and a config
folder, and map them in docker to their respective folders inside the container (/opt/magic_mirror/...
). For the config.js itself, create a hard link cd config; ln ../config.js ./config.js
. Also clone the modules locally, by manually running the git and npm commands from https://github.com/hypest/magic_mirror_hypest/blob/master/Dockerfile. Restart the container and it should be ready.