From 27d3179c7104a2c956a9094ecc50dea67a036d4a Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 17 Aug 2016 20:22:38 +0800 Subject: [PATCH] mpd + icecast --- icecast/arm/Dockerfile | 13 +++++++++++++ icecast/arm/docker-compose.yml | 5 +++++ mpd/arm/docker-compose.yml | 9 +++++++++ mpd/arm/mpd.conf | 23 +++++++++++------------ mpd/docker-compose.yml | 9 +++++++++ mpd/mpd.conf | 23 +++++++++++------------ 6 files changed, 58 insertions(+), 24 deletions(-) create mode 100644 icecast/arm/Dockerfile create mode 100644 icecast/arm/docker-compose.yml diff --git a/icecast/arm/Dockerfile b/icecast/arm/Dockerfile new file mode 100644 index 0000000..d1442c0 --- /dev/null +++ b/icecast/arm/Dockerfile @@ -0,0 +1,13 @@ +# +# Dockerfile for icecast-arm +# + +FROM easypi/alpine-arm + +MAINTAINER EasyPi Software Foundation + +RUN apk add --no-cache icecast + +EXPOSE 8000 + +CMD ["icecast", "-c", "/etc/icecast.xml"] diff --git a/icecast/arm/docker-compose.yml b/icecast/arm/docker-compose.yml new file mode 100644 index 0000000..3bd16f9 --- /dev/null +++ b/icecast/arm/docker-compose.yml @@ -0,0 +1,5 @@ +icecast: + image: easypi/icecast-arm + ports: + - "8000:8000" + restart: always diff --git a/mpd/arm/docker-compose.yml b/mpd/arm/docker-compose.yml index 21355ac..5b7bdce 100644 --- a/mpd/arm/docker-compose.yml +++ b/mpd/arm/docker-compose.yml @@ -3,8 +3,17 @@ mpd: ports: - "6600:6600" volumes: + - ./mpd.conf:/etc/mpd.conf - ./music:/var/lib/mpd/music - ./playlists:/var/lib/mpd/playlists devices: - /dev/snd + links: + - icecast + restart: always + +icecast: + image: easypi/icecast-arm + ports: + - "8000:8000" restart: always diff --git a/mpd/arm/mpd.conf b/mpd/arm/mpd.conf index 0a73495..73df3f9 100644 --- a/mpd/arm/mpd.conf +++ b/mpd/arm/mpd.conf @@ -16,15 +16,14 @@ audio_output { 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" -#} +audio_output { + type "shout" + encoding "ogg" + name "My Shout Stream" + host "icecast" + port "8000" + mount "/mpd.ogg" + password "hackme" + bitrate "128" + format "44100:16:1" +} diff --git a/mpd/docker-compose.yml b/mpd/docker-compose.yml index cd910f7..0f8bc93 100644 --- a/mpd/docker-compose.yml +++ b/mpd/docker-compose.yml @@ -3,8 +3,17 @@ mpd: ports: - "6600:6600" volumes: + - ./mpd.conf:/etc/mpd.conf - ./music:/var/lib/mpd/music - ./playlists:/var/lib/mpd/playlists devices: - /dev/snd + links: + - icecast + restart: always + +icecast: + image: vimagick/icecast + ports: + - "8000:8000" restart: always diff --git a/mpd/mpd.conf b/mpd/mpd.conf index 0a73495..73df3f9 100644 --- a/mpd/mpd.conf +++ b/mpd/mpd.conf @@ -16,15 +16,14 @@ audio_output { 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" -#} +audio_output { + type "shout" + encoding "ogg" + name "My Shout Stream" + host "icecast" + port "8000" + mount "/mpd.ogg" + password "hackme" + bitrate "128" + format "44100:16:1" +}