Skip to content

Instantly share code, notes, and snippets.

@franz-josef-kaiser
Created May 9, 2020 22:57
Show Gist options
  • Save franz-josef-kaiser/89e8775286bf717d3f85962400db5c74 to your computer and use it in GitHub Desktop.
Save franz-josef-kaiser/89e8775286bf717d3f85962400db5c74 to your computer and use it in GitHub Desktop.
Run Volumio hifi audiophile in a docker container on MacOS
#!/usr/bin/env bash
mkdir music data
set MUSIC_DIR=./music
set VOLUMIO_DATA_DIR=./data
docker run \
--rm \
-d \
--name volumio \
-e DISPLAY=unix$DISPLAY \
-e HOST=http://192.168.1.1:3000 \ # Your local network IP
-p 3000:3000 \
-v ${MUSIC_DIR}:/var/lib/mpd/music/:ro \
-v ${VOLUMIO_DATA_DIR}:/data \
--device /dev/null:/dev/snd \ # We just want to see the UI, so we disable audio by mapping it to /dev/null. No /dev/snd on MacOS anyway.
-v /tmp/.X11-unix:/tmp/.X11-unix \
jbonjean/volumio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment