-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3'
services:
magicmirror:
image: karsten13/magicmirror:latest
container_name: magicmirror
restart: unless-stopped
volumes:
# Customisation - only mount the files under source control, not entire dirs
# \-> CSS
- ./magicmirror/css/custom.css:/opt/magic_mirror/css/custom.css
# \-> config
- ./magicmirror/config/config.js.template:/opt/magic_mirror/config/config.js.template
# \-> modules
- ./magicmirror/modules/MMM-OnThisDay:/opt/magic_mirror/modules/MMM-OnThisDay
- ./magicmirror/modules/MMM-QRCode:/opt/magic_mirror/modules/MMM-QRCode
- ./magicmirror/modules/MMM-Sonos:/opt/magic_mirror/modules/MMM-Sonos
# Bind system files and folders
- /tmp/.X11-unix:/tmp/.X11-unix
- /opt/vc:/opt/vc/:ro
- /usr/bin/vcgencmd:/usr/bin/vcgencmd
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
devices:
- /dev/vchiq
environment:
LD_LIBRARY_PATH: /opt/vc/lib
DISPLAY: unix:0.0
OPENWEATHERMAP_APIKEY: $OPENWEATHERMAP_APIKEY
QRCODE_WIFI_SSID: $QRCODE_WIFI_SSID
QRCODE_WIFI_PASSWORD: $QRCODE_WIFI_PASSWORD
network_mode: host
shm_size: "128mb"
command:
- npm
- run
- start