andrew-codes / my-mopidy-setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Mopidy Setup

This is the Docker image that I'm currently using to run Mopidy on a Raspberry Pi.

It probably won't be exactly the setup you want, but feel free to create a fork for your own setup.

Build Your Own

docker build -t yourUser/mopidy .
docker build -t yourUser/mopidy:pi -f pi.Dockerfile .

Mopidy Config

Place mopidy.conf file in ./config

Run

docker run -it --rm --device /dev/snd --mount type=bind,src=`$(PWD)/config`,dst=/root/.config/mopidy --name mopidy -p 6600:6600 -p 6680:6680 andrewcodes/mopidy:pi

Run in background

docker run -d --restart=unless-stopped --device /dev/snd --mount type=volume,src=`$(PWD)/config`,target=/root/.config/mopidy --name mopidy -p 6600:6600 -p 6680:6680 andrewcodes/mopidy:pi

View logs

docker logs mopidy

Execute any Mopidy command

docker exec mopidy mopidy <cmd>
docker exec mopidy mopidy config
docker exec mopidy mopidy deps

About


Languages

Language:Dockerfile 100.0%