mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add ices
This commit is contained in:
parent
a9020ca75b
commit
db2e3d5d5a
11
ices/Dockerfile
Normal file
11
ices/Dockerfile
Normal 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
2
ices/data/ices.txt
Normal file
@ -0,0 +1,2 @@
|
||||
artist=Various Artists
|
||||
title=Untitled Song
|
34
ices/data/ices.xml
Normal file
34
ices/data/ices.xml
Normal 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
15
ices/docker-compose.yml
Normal 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
|
@ -13,6 +13,7 @@ mosquitto:
|
||||
image: vimagick/mosquitto
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "8080:8080"
|
||||
- "8883:8883"
|
||||
volumes:
|
||||
- ./data/mosquitto.conf:/etc/mosquitto/mosquitto.conf
|
||||
|
@ -1,4 +1,6 @@
|
||||
port 8883
|
||||
listener 8080
|
||||
protocol websockets
|
||||
log_dest stdout
|
||||
allow_anonymous false
|
||||
password_file /etc/mosquitto/pwfile
|
||||
|
@ -2,6 +2,7 @@ mosquitto:
|
||||
image: vimagick/mosquitto
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "8080:8080"
|
||||
- "8883:8883"
|
||||
volumes:
|
||||
- ./data/mosquitto.conf:/etc/mosquitto/mosquitto.conf
|
||||
|
Loading…
Reference in New Issue
Block a user