This repository contains a docker-compose.yml
file that runs 3 containers:
mpd
- Music Player Daemonympd
- MPD Web UIsnapcast
- SnapCast server
They are all based on Alpine linux - ideal for running on a NAS, or anything that can run Docker.
mpd
outputs audio to a named pipe mpdstate/snapfifo
which is also mounted into the snapcast
container, which reads from there. mpd
also stores its database and playlists in mpdstate
. A run.sh
script is included to automate the setup process.
docker
docker-compose
snapclient
installed locally- Some music
- Copy the file
example.env
to.env
and edit it as required. - Execute
./run.sh
and ensure that all the containers are healthy viadocker-compose ps
. - Open
http://$HOSTNAME:8080
(or whatever you changedYMPD_PORT
to) and queue up some music - Run
snapclient -h $HOST
and enjoy. - Alternatively, open
http://localhost:6680/mpd.ogg
in your preferred music player (vlc
works perfectly).
- skalavala's writeup
- vimagick's mpd Dockerfile
- VITIMan's docker-music-stack
- Probably many others
MRs are welcome!