From 743290d462b964c55e7a224c1f8647ac741c4e12 Mon Sep 17 00:00:00 2001 From: nicco Date: Fri, 29 Jun 2018 11:05:51 +0200 Subject: [PATCH] Audio stream --- audio/README.md | 17 +++++++++++++ audio/docker-compose.yml | 10 ++++++++ audio/dockerfile | 9 +++++++ audio/icecast.xml | 53 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 audio/README.md create mode 100644 audio/docker-compose.yml create mode 100644 audio/dockerfile create mode 100644 audio/icecast.xml diff --git a/audio/README.md b/audio/README.md new file mode 100644 index 0000000..2053b71 --- /dev/null +++ b/audio/README.md @@ -0,0 +1,17 @@ +# Audio Livestream + +Docker image for icecast2 + +## Quickstart 💥 + +``` +docker-compose up -d +``` + +## Setup 🏗 + +Change the passwords in the `icecast.xml` + +## Usage 👾 + +Upload to the server with some broadcasting software: [Like b.u.t.t.](https://danielnoethen.de/) \ No newline at end of file diff --git a/audio/docker-compose.yml b/audio/docker-compose.yml new file mode 100644 index 0000000..9587009 --- /dev/null +++ b/audio/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' + +services: + server: + build: ./ + ports: + - 80:80 + - 8000:8000 + volumes: + - ./icecast.xml:/usr/share/icecast/icecast.xml diff --git a/audio/dockerfile b/audio/dockerfile new file mode 100644 index 0000000..f38a78a --- /dev/null +++ b/audio/dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3.7 + +RUN apk add --no-cache icecast + +WORKDIR /usr/share/icecast +RUN mkdir ./logs +RUN chown -R icecast: . + +CMD [ "icecast", "-c","icecast.xml" ] \ No newline at end of file diff --git a/audio/icecast.xml b/audio/icecast.xml new file mode 100644 index 0000000..1f22157 --- /dev/null +++ b/audio/icecast.xml @@ -0,0 +1,53 @@ + + 0.0.0.0 + earth + + + 80 + + + + hackme + admin + hackme + + + +
+ + + + 100 + 2 + 102400 + 30 + 15 + 10 + 1 + 65536 + + + + /usr/share/icecast + ./logs + + ./web + ./admin + + + + 0 + + icecast + icecast + + + + + /live + 796 + My audio stream + My audio description + + + \ No newline at end of file