Skip to content

scooter1556/mpd-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPD Docker Image

Simple Music Player Daemon (MPD) image for Docker tracking latest Ubuntu rolling package version.

Setup

It's recommended to create a dedicated directory on the host for storing MPD config, database and state files.

mkdir -p /etc/mpd

Download the example config to the MPD directory

curl https://raw.githubusercontent.com/scooter1556/mpd-docker/main/mpdconf.example > /etc/mpd/mpd.conf

Modify the configuration as needed following MPD Documentation

Docker

docker run -d --name mpd -v /etc/mpd/mpd.conf:/etc/mpd.conf -v /etc/mpd:/etc/mpd -v /Path/To/Your/Music:/var/lib/mpd/music -p 6600:6600 --device /dev/snd --cap-add=sys_nice scootsoftware/mpd

Docker Compose

version: '3'
services:
mpd:
    container_name: mpd
    image: scootsoftware/mpd
    volumes:
      - /etc/mpd/mpd.conf:/etc/mpd.conf
      - /etc/mpd:/etc/mpd
      - /Path/To/Your/Music:/var/lib/mpd/music
      - /Path/To/Your/Playlists:/var/lib/mpd/playlist
    restart: unless-stopped
    ports:
      - "6600:6600"
    devices:
      - /dev/snd:/dev/snd
    cap_add:
      - SYS_NICE

About

Music Player Daemon (MPD) for Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published