Skip to content

Instantly share code, notes, and snippets.

@danielwhite
Last active May 8, 2017 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielwhite/5fc9f0a401e8beb9e2ad6ef463650cfa to your computer and use it in GitHub Desktop.
Save danielwhite/5fc9f0a401e8beb9e2ad6ef463650cfa to your computer and use it in GitHub Desktop.
Mopidy Container
FROM debian:latest
# Add Mopidy repository
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 78FD980E271D2943 && \
echo "deb http://apt.mopidy.com/ jessie main contrib non-free" > /etc/apt/sources.list.d/mopidy.list
# Install Mopidy packages
RUN apt-get update && apt-get install -y \
mopidy \
mopidy-spotify \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 6600 6680
# Set the Mopidy configuration
RUN mkdir -p /root/.config/mopidy
ADD mopidy.conf /root/.config/mopidy/mopidy.conf
ENTRYPOINT ["mopidy"]
[audio]
# This does not work...!?
#output = audioresample ! audioconvert ! vorbisenc ! oggmux ! shout2send mount=stream.ogg ip=icecast port=8000 password=hackme
# This does work!
output = lamemp3enc ! shout2send mount=stream.mp3 ip=icecast port=8000 password=hackme
[http]
hostname = ::
[mpd]
hostname = ::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment