Skip to content

Instantly share code, notes, and snippets.

@jasperla
Created April 15, 2015 12:55
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 jasperla/2124366c9f239137dc4f to your computer and use it in GitHub Desktop.
Save jasperla/2124366c9f239137dc4f to your computer and use it in GitHub Desktop.
MPD Docker container
music_directory "/audio"
playlist_directory "/var/mpd/playlists"
db_file "/var/mpd/mpd.db"
log_file "/var/log//mpd.log"
pid_file "/var/mpd/mpd.pid"
state_file "/var/mpd/mpdstate"
sticker_file "/var/mpd/sticker.sql"
user "mpd"
bind_to_address "any"
audio_output {
type "shout"
encoding "vorbis"
name "Shout Stream (ogg)"
host "icecast"
port "8000"
mount "/mpd.ogg"
password "hackme"
quality "10" # highest
format "44100:16:1"
}
audio_output {
type "shout"
encoding "mp3"
name "Shout Stream (mp3)"
host "icecast"
port "8000"
mount "/mpd.mp3"
password "hackme"
quality "0" # highest
format "44100:16:1"
}
#!/bin/bash
mkdir -p /var/mpd/playlists
chown -R mpd /var/mpd/
mpd --no-daemon --stdout /etc/mpd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment