This commit is contained in:
Brandon
2019-08-24 03:21:17 -05:00
parent 8683c4e24a
commit d1cf698463
3 changed files with 8 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ RUN \
COPY root/ / COPY root/ /
RUN chmod +x /usr/local/bin/run.sh RUN chmod +x /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 6600 6680 8000 1704 1705 EXPOSE 1704 1705 6600 6680 8000
VOLUME /data /music /playlists VOLUME /data /music /playlists
LABEL description "Open source media server" LABEL description "Open source media server"

View File

@@ -25,7 +25,7 @@ hostname = 0.0.0.0
[iris] [iris]
snapcast_enabled = true snapcast_enabled = true
snapcast_host = snapserver snapcast_host = 0.0.0.0
snapcast_port = 1705 snapcast_port = 1705
country = US country = US
locale = en_US locale = en_US

View File

@@ -13,11 +13,16 @@ if [ ! -r /data/.config/icecast.xml ]; then
fi fi
if [ ! -r /data/icecast ]; then if [ ! -r /data/icecast ]; then
mkdir -p /data/icecast/logs mkdir -p /data/icecast/web /data/icecast/logs /data/icecast/admin
cp -r /usr/share/icecast /data/icecast cp -r /usr/share/icecast /data/icecast
cp /defaults/silence.mp3 /data/icecast/web/silence.mp3 cp /defaults/silence.mp3 /data/icecast/web/silence.mp3
fi fi
if [ ! -r /tmp/snapfifo ]; then
touch /tmp/snapfifo
chown mopidy:mopidy /tmp/snapfifo
fi
chown -R mopidy:mopidy /data chown -R mopidy:mopidy /data
su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan