1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2017-04-22 16:51:33 +08:00
parent a9020ca75b
commit db2e3d5d5a
12 changed files with 66 additions and 0 deletions

11
ices/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
#
# Dockerfile for ices
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN apk add --no-cache ices
COPY data /etc/ices
CMD ["ices", "/etc/ices/ices.xml"]

2
ices/data/ices.txt Normal file
View File

@ -0,0 +1,2 @@
artist=Various Artists
title=Untitled Song

34
ices/data/ices.xml Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<ices>
<background>0</background>
<loglevel>4</loglevel>
<consolelog>1</consolelog>
<pidfile>/var/run/ices.pid</pidfile>
<stream>
<metadata>
<name>Example stream name</name>
<genre>Example genre</genre>
<description>A short description of your stream</description>
<url>http://easypi.info</url>
</metadata>
<input>
<module>alsa</module>
<param name="rate">44100</param>
<param name="channels">1</param>
<param name="device">hw:1,0</param>
<param name="metadata">1</param>
<param name="metadatafilename">/etc/ices/ices.txt</param>
</input>
<instance>
<hostname>icecast</hostname>
<port>8000</port>
<password>hackme</password>
<mount>/live.ogg</mount>
<encode>
<quality>0</quality>
<samplerate>44100</samplerate>
<channels>1</channels>
</encode>
</instance>
</stream>
</ices>

15
ices/docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
ices:
image: vimagick/ices
volumes:
- ./data:/etc/ices
devices:
- /dev/snd
links:
- icecast
restart: always
icecast:
image: vimagick/icecast
ports:
- "8000:8000"
restart: always

View File

@ -13,6 +13,7 @@ mosquitto:
image: vimagick/mosquitto
ports:
- "1883:1883"
- "8080:8080"
- "8883:8883"
volumes:
- ./data/mosquitto.conf:/etc/mosquitto/mosquitto.conf

View File

@ -1,4 +1,6 @@
port 8883
listener 8080
protocol websockets
log_dest stdout
allow_anonymous false
password_file /etc/mosquitto/pwfile

View File

@ -2,6 +2,7 @@ mosquitto:
image: vimagick/mosquitto
ports:
- "1883:1883"
- "8080:8080"
- "8883:8883"
volumes:
- ./data/mosquitto.conf:/etc/mosquitto/mosquitto.conf