This is a docker container which provides the latest mopidy release combined with a streaming server. The current version (0.19) sends EOS (End-of-Stream) if the track changes which closes the stream in icecast, mplayer, etc.
This solution pipes the output through liquidsoap which then provides a http stream.
$~ git clone https://github.com/schinken/docker-container.git $~ cd docker-container/mopidy-stream $~ docker build -t mopidy-stream .
or pull it directly from the docker repository
docker pull schinken/mopidy-stream
Running the container
docker run -e SPOTIFY_USERNAME=spotifyUser42 -e SPOTIFY_PASSWORD=spotifyPassword123 -p 6600:6600 -p 6680:6680 -p 8800:8800 -t schinken/mopidy-stream:latest
- Port 6600 provides the mpd interface
- On Port 6680 there's the webinterface "Mopidy-MusicBox-Webclient"
- Port 8800 provides the HTTP stream encoded as mp3-192
- I will add a mappable volume to include a share with all your music which is then indexed by mopidy