Audio stream

This commit is contained in:
nicco 2018-06-29 11:05:51 +02:00
parent 4b76d40354
commit 743290d462
4 changed files with 89 additions and 0 deletions

17
audio/README.md Normal file
View File

@ -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/)

10
audio/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3'
services:
server:
build: ./
ports:
- 80:80
- 8000:8000
volumes:
- ./icecast.xml:/usr/share/icecast/icecast.xml

9
audio/dockerfile Normal file
View File

@ -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" ]

53
audio/icecast.xml Normal file
View File

@ -0,0 +1,53 @@
<icecast>
<hostname>0.0.0.0</hostname>
<location>earth</location>
<listen-socket>
<port>80</port>
</listen-socket>
<authentication>
<source-password>hackme</source-password>
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<http-headers>
<header name="Access-Control-Allow-Origin" value="*" />
</http-headers>
<limits>
<clients>100</clients>
<sources>2</sources>
<queue-size>102400</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65536</burst-size>
</limits>
<paths>
<basedir>/usr/share/icecast</basedir>
<logdir>./logs</logdir>
<!-- <pidfile>./icecast.pid</pidfile> -->
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
</paths>
<security>
<chroot>0</chroot>
<changeowner>
<user>icecast</user>
<group>icecast</group>
</changeowner>
</security>
<mount type="normal">
<mount-name>/live</mount-name>
<max-listeners>796</max-listeners>
<stream-name>My audio stream</stream-name>
<stream-description>My audio description</stream-description>
</mount>
</icecast>