Run mopidy (https://mopidy.com) in a container.
100K+
Run mopidy plus various extensions in a docker container.
The image plays bitperfect using alsa devices.
Pulseaudio is not needed.
docker run -d --name mopidy --net host --device /dev/snd \
-v ~/.config:/root/.config \
-v /data/music:/data/music rawdlite/mopidy
With docker-compose you you can set up a set of containers and a network that connects them. For a full installation of mopidy,
version: "3"
services:
mopidy:
image: rawdlite/mopidy
container_name: mopidy
devices:
- "/dev/snd"
ports:
- "6600:6600"
- "6680:6680"
restart: always
volumes:
- ~/.config/:/root/.config/
- /data/music/:/data/music/
mysql:
image: linuxserver/mariadb
restart: unless-stopped
container_name: mysql
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=b4FUk4mF>3As3aA
- TZ=Europe/Berlin
- MYSQL_DATABASE=romprdb
- MYSQL_USER=rompr
- MYSQL_PASSWORD=romprdbpass
volumes:
- ./db_config:/config
ports:
- "3306:3306"
rompr:
image: rawdlite/rompr
container_name: rompr
restart: always
ports:
- "80:80"
You need to change at least the volume pathes to reflect your system. then run:
docker-compose up -d
You can install additional Plugins like so:
docker exec -it mopidy python3 -m pip install Mopidy-Mobile
Using buildx, it is possible to build a multi-platform image that runs on Raspberry Pi (armv7) as well as on x86 architecture (amd64)
docker buildx build --platform linux/amd64,linux/arm/v7 --push -t rawdlite/mopidy:latest .
Docker picks the correct image based on the node’s platform
There are no mopidy packages for aarch64. This can be dealt with by using PyPi. Unfortunatly i could not find a working libspotify for aarch64. I might create a image mopidy:aarch64 but this will not support the spotify plugin.
Content type
Image
Digest
Size
328 MB
Last updated
almost 5 years ago
docker pull rawdlite/mopidy