From ac32cbf80c0fbebe0e741587b568a105716ec002 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 18 Sep 2016 00:59:19 +0800 Subject: [PATCH] add shoutcast --- README.md | 1 + shoutcast/Dockerfile | 23 ++++++++++++++++++++++ shoutcast/README.md | 38 ++++++++++++++++++++++++++++++++++++ shoutcast/docker-compose.yml | 8 ++++++++ shoutcast/sc_serv.conf | 13 ++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 shoutcast/Dockerfile create mode 100644 shoutcast/README.md create mode 100644 shoutcast/docker-compose.yml create mode 100644 shoutcast/sc_serv.conf diff --git a/README.md b/README.md index a311287..1290f67 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ A collection of delicious docker recipes. - [x] red5-arm :construction: - [x] rtmp-client-arm :+1: - [x] rtmp-server +- [x] shoutcast - [x] tesseract - [x] youtube-dl - [x] youtube-worker :beetle: diff --git a/shoutcast/Dockerfile b/shoutcast/Dockerfile new file mode 100644 index 0000000..784b1a6 --- /dev/null +++ b/shoutcast/Dockerfile @@ -0,0 +1,23 @@ +# +# Dockerfile for shoutcast +# + +FROM debian:jessie + +MAINTAINER kev + +WORKDIR /opt/shoutcast + +RUN set -xe \ + && apt-get update \ + && apt-get install -y curl \ + && curl http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz | tar xz \ + && mkdir -p control logs \ + && apt-get remove -y curl \ + && rm -rf /var/lib/apt/lists/* + +COPY sc_serv.conf . + +EXPOSE 8000 8001 + +CMD ["./sc_serv", "sc_serv.conf"] diff --git a/shoutcast/README.md b/shoutcast/README.md new file mode 100644 index 0000000..21990cd --- /dev/null +++ b/shoutcast/README.md @@ -0,0 +1,38 @@ +shoutcast +========= + +[SHOUTcast][1] Server (DNAS) - The most popular online streaming server +software on the planet, used by over 50,000 broadcasters. + +## docker-compose.yml + +```yaml +shoutcast: + image: vimagick/shoutcast + ports: + - "8000:8000" + - "8001:8001" + volumes: + - ./sc_serv.conf:/opt/shoutcast/sc_serv.conf + restart: always +``` + +## sc_serv.conf + +```ini +# +# http://wiki.shoutcast.com/wiki/SHOUTcast_DNAS_Server_2 +# + +adminpassword=hackme1 +password=hackme2 +requirestreamconfigs=1 +streamid_1=1 +streampath_1=/stream/1/ +logfile=logs/sc_serv.log +w3clog=logs/sc_w3c.log +banfile=control/sc_serv.ban +ripfile=control/sc_serv.rip +``` + +[1]: http://wiki.shoutcast.com/wiki/SHOUTcast diff --git a/shoutcast/docker-compose.yml b/shoutcast/docker-compose.yml new file mode 100644 index 0000000..dc73d1e --- /dev/null +++ b/shoutcast/docker-compose.yml @@ -0,0 +1,8 @@ +shoutcast: + image: vimagick/shoutcast + ports: + - "8000:8000" + - "8001:8001" + volumes: + - ./sc_serv.conf:/opt/shoutcast/sc_serv.conf + restart: always diff --git a/shoutcast/sc_serv.conf b/shoutcast/sc_serv.conf new file mode 100644 index 0000000..0a8de15 --- /dev/null +++ b/shoutcast/sc_serv.conf @@ -0,0 +1,13 @@ +# +# http://wiki.shoutcast.com/wiki/SHOUTcast_DNAS_Server_2 +# + +adminpassword=hackme1 +password=hackme2 +requirestreamconfigs=1 +streamid_1=1 +streampath_1=/stream/1/ +logfile=logs/sc_serv.log +w3clog=logs/sc_w3c.log +banfile=control/sc_serv.ban +ripfile=control/sc_serv.rip