mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-07 13:43:53 +02:00
add mpd
This commit is contained in:
parent
107bc88c5f
commit
5509157c49
@ -98,6 +98,7 @@ A collection of delicious docker recipes.
|
||||
- [x] icecast
|
||||
- [x] live555
|
||||
- [x] minidlna
|
||||
- [x] mpd
|
||||
- [x] murmur
|
||||
- [x] plex :moneybag:
|
||||
- [x] red5 :+1:
|
||||
|
13
mpd/Dockerfile
Normal file
13
mpd/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# Dockerfile for mpd
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
RUN apk add --no-cache mpd mpc
|
||||
COPY mpd.conf /etc/mpd.conf
|
||||
VOLUME /var/lib/mpd
|
||||
|
||||
EXPOSE 6600
|
||||
CMD ["mpd", "--stdout", "--no-daemon"]
|
43
mpd/README.md
Normal file
43
mpd/README.md
Normal file
@ -0,0 +1,43 @@
|
||||
Music Player Daemon
|
||||
===================
|
||||
|
||||
[Music Player Daemon][1] (MPD) is a flexible, powerful, server-side application
|
||||
for playing music. Through plugins and libraries it can play a variety of sound
|
||||
files while being controlled by its network protocol.
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
mpd:
|
||||
image: vimagick/mpd
|
||||
ports:
|
||||
- "6600:6600"
|
||||
volumes:
|
||||
- ./music:/var/lib/mpd/music
|
||||
- ./playlists:/var/lib/mpd/playlists
|
||||
devices:
|
||||
- /dev/snd
|
||||
restart: always
|
||||
```
|
||||
|
||||
## Server Setup
|
||||
|
||||
```bash
|
||||
$ mkdir -p music
|
||||
$ wget -P music https://upload.wikimedia.org/wikipedia/commons/d/d5/Pop_Goes_the_Weasel.ogg
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
## Client Setup
|
||||
|
||||
- Android: https://play.google.com/store/apps/details?id=com.namelessdev.mpdroid
|
||||
- Desktop: http://rybczak.net/ncmpcpp/
|
||||
|
||||
## Read More
|
||||
|
||||
- <https://wiki.archlinux.org/index.php/Music_Player_Daemon>
|
||||
- <https://wiki.archlinux.org/index.php/Streaming_With_Icecast>
|
||||
- <https://stmllr.net/blog/streaming-audio-with-mpd-and-icecast2-on-raspberry-pi/>
|
||||
|
||||
[1]: https://www.musicpd.org/
|
13
mpd/arm/Dockerfile
Normal file
13
mpd/arm/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# Dockerfile for mpd-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN apk add --no-cache mpd mpc
|
||||
COPY mpd.conf /etc/mpd.conf
|
||||
VOLUME /var/lib/mpd
|
||||
|
||||
EXPOSE 6600
|
||||
CMD ["mpd", "--stdout", "--no-daemon"]
|
10
mpd/arm/README.md
Normal file
10
mpd/arm/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
Music Player Daemon
|
||||
===================
|
||||
|
||||
## Enable Audio Device (ArchLinuxArm)
|
||||
|
||||
```bash
|
||||
$ echo 'snd-bcm2835' > /etc/modules-load.d/raspberrypi.conf
|
||||
$ echo 'dtparam=audio=on' >> /boot/config.txt
|
||||
$ reboot
|
||||
```
|
10
mpd/arm/docker-compose.yml
Normal file
10
mpd/arm/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
mpd:
|
||||
image: easypi/mpd-arm
|
||||
ports:
|
||||
- "6600:6600"
|
||||
volumes:
|
||||
- ./music:/var/lib/mpd/music
|
||||
- ./playlists:/var/lib/mpd/playlists
|
||||
devices:
|
||||
- /dev/snd
|
||||
restart: always
|
30
mpd/arm/mpd.conf
Normal file
30
mpd/arm/mpd.conf
Normal file
@ -0,0 +1,30 @@
|
||||
music_directory "/var/lib/mpd/music"
|
||||
playlist_directory "/var/lib/mpd/playlists"
|
||||
db_file "/var/lib/mpd/database"
|
||||
log_file "/var/log/mpd/mpd.log"
|
||||
pid_file "/var/run/mpd/mpd.pid"
|
||||
state_file "/var/lib/mpd/state"
|
||||
sticker_file "/var/lib/mpd/sticker.sql"
|
||||
|
||||
input {
|
||||
plugin "curl"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "alsa"
|
||||
name "Default Audio Device"
|
||||
mixer_type "software"
|
||||
}
|
||||
|
||||
#audio_output {
|
||||
# type "shout"
|
||||
# encoding "ogg"
|
||||
# name "My Shout Stream"
|
||||
# host "icecast"
|
||||
# port "8000"
|
||||
# mount "/mpd.ogg"
|
||||
# password "hackme"
|
||||
# quality "5.0"
|
||||
# bitrate "128"
|
||||
# format "44100:16:1"
|
||||
#}
|
10
mpd/docker-compose.yml
Normal file
10
mpd/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
mpd:
|
||||
image: vimagick/mpd
|
||||
ports:
|
||||
- "6600:6600"
|
||||
volumes:
|
||||
- ./music:/var/lib/mpd/music
|
||||
- ./playlists:/var/lib/mpd/playlists
|
||||
devices:
|
||||
- /dev/snd
|
||||
restart: always
|
30
mpd/mpd.conf
Normal file
30
mpd/mpd.conf
Normal file
@ -0,0 +1,30 @@
|
||||
music_directory "/var/lib/mpd/music"
|
||||
playlist_directory "/var/lib/mpd/playlists"
|
||||
db_file "/var/lib/mpd/database"
|
||||
log_file "/var/log/mpd/mpd.log"
|
||||
pid_file "/var/run/mpd/mpd.pid"
|
||||
state_file "/var/lib/mpd/state"
|
||||
sticker_file "/var/lib/mpd/sticker.sql"
|
||||
|
||||
input {
|
||||
plugin "curl"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "alsa"
|
||||
name "Default Audio Device"
|
||||
mixer_type "software"
|
||||
}
|
||||
|
||||
#audio_output {
|
||||
# type "shout"
|
||||
# encoding "ogg"
|
||||
# name "My Shout Stream"
|
||||
# host "icecast"
|
||||
# port "8000"
|
||||
# mount "/mpd.ogg"
|
||||
# password "hackme"
|
||||
# quality "5.0"
|
||||
# bitrate "128"
|
||||
# format "44100:16:1"
|
||||
#}
|
Loading…
x
Reference in New Issue
Block a user