Sign inSign up

kevlar10/mopidy

By kevlar10

Updated over 5 years ago

Mopidy Server

Image
0

615

kevlar10/mopidy repository overview

My Mopidy Setup

This is the Docker image that I'm currently using to run Mopidy.

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

Build on PC

docker build --pull -t kevlar10/mopidy --build-arg BUILD_FROM=debian:stable-slim .

Build on Raspberry Pi

docker build --pull -t kevlar10/mopidy --build-arg BUILD_FROM=balenalib/rpi-raspbian:latest .

Run in foreground:

docker run --rm \
           --name mopidy \
           --device /dev/snd \
           --net=host \
           -it \
           jjok/mopidy

Run in background:

docker run --restart=unless-stopped \
           --name mopidy \
           --device /dev/snd \
           --net=host \
           -d \
           kevlar10/mopidy

View logs:

docker logs -f mopidy

Execute any Mopidy command:

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

Raspberry PI Setup

  1. Burn Raspberry PI OS to SD card (8GB+). A 2GB SD card will not be big enough for both Raspbian and the Docker image.
  2. Put SD card in Raspberry Pi 2. A Pi Zero does not have enough RAM to build the Docker image.
  3. Install Docker CE. sudo apt install docker-ce
  4. Copy Dockerfile, requirements.txt and mopidy.conf to the Pi.
  5. Run build command (takes around 45 minutes on Pi 2)
  6. Put SD card in Pi Zero
  7. Run "Run in background" command
  8. Install PhatDAC soundcard
  9. Reboot

Tag summary

Content type

Image

Digest

Size

326.5 MB

Last updated

over 5 years ago

docker pull kevlar10/mopidy