Upload files to "Magic Mirror"
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
[](https://github.com/MichMich/MagicMirror)
|
||||
|
||||
MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.
|
||||
|
||||
In some cases, you want to start the application without an actual app window. In this case, you can start MagicMirror² in server only mode by manually running node serveronly or using Docker. This will start the server, after which you can open the application in your browser of choice.
|
||||
|
||||
## Setting up the container
|
||||
|
||||
Go to `Containers` > `Add Container`
|
||||
|
||||
Set *Name* to:
|
||||
```
|
||||
magicmirror
|
||||
```
|
||||
|
||||
Set *Image* to:
|
||||
```
|
||||
bastilimbach/docker-magicmirror
|
||||
```
|
||||
|
||||
Click `publish a new network port` next to `Manual network port publishing`.
|
||||
|
||||
Set the host port as desired (I set `8044`) and the container port to `8080`.
|
||||
|
||||
|
||||
### Set the following volumes:
|
||||
|
||||
Add this to syncronize the time of the host with the docker container.
|
||||
|
||||
Container:
|
||||
```
|
||||
/etc/localtime:ro
|
||||
```
|
||||
|
||||
Volume:
|
||||
|
||||
```
|
||||
/etc/localtime
|
||||
```
|
||||
|
||||
Mount this folder to insert your own config into the docker container. If the folder is empty the container will create a default configuration which can be adapted to you likings.
|
||||
|
||||
Container:
|
||||
```
|
||||
/opt/magic_mirror/config
|
||||
```
|
||||
|
||||
Volume:
|
||||
|
||||
```
|
||||
/portainer/Files/AppData/Config/magic_mirror/config
|
||||
```
|
||||
|
||||
Mount this folder to add your own custom modules into the docker container. If the folder is empty the container will copy the default modules from the MagicMirror² repository into the volume.
|
||||
|
||||
Container:
|
||||
```
|
||||
/opt/magic_mirror/modules
|
||||
```
|
||||
|
||||
Volume:
|
||||
|
||||
```
|
||||
/portainer/Files/AppData/Config/magic_mirror/modules
|
||||
```
|
||||
|
||||
Mount this file to add your own custom css into the docker container.
|
||||
|
||||
**Important:** You need to create the file before you run the container otherwise Docker will create a custom.css folder. You can find the default custom.css template [here](custom.css).
|
||||
|
||||
Container:
|
||||
```
|
||||
/opt/magic_mirror/css/custom.css
|
||||
```
|
||||
|
||||
Volume:
|
||||
|
||||
```
|
||||
/portainer/Files/AppData/Config/magic_mirror/config/custom.css
|
||||
```
|
||||
|
||||
### Set the following environmental variables:
|
||||
|
||||
Name:
|
||||
```
|
||||
TZ
|
||||
```
|
||||
|
||||
Value: *Find you time zone [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) and enter your appropriate value.*
|
||||
```
|
||||
Europe/London
|
||||
```
|
||||
|
||||
### Set the restart policy:
|
||||
|
||||
I always tend to set `Unless Stopped`
|
||||
|
||||
### Deploy
|
||||
|
||||
This should be all you need to deploy the basic set up, just click `Deploy the container` and head over to `yourIP:selectedPort` (In my case `192.168.1.227:8044`) and you should be greeted with the default magic mirror. Have a look through the documentation and update your settings in `/portainer/Files/AppData/Config/magic_mirror/config/` to personalise your display.
|
||||
Reference in New Issue
Block a user