mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 14:45:38 +00:00
replace subsonic with libresonic
This commit is contained in:
33
libresonic/Dockerfile
Normal file
33
libresonic/Dockerfile
Normal file
@ -0,0 +1,33 @@
|
||||
FROM alpine:edge
|
||||
|
||||
ARG VERSION=6.2.beta1
|
||||
|
||||
ENV UID=991 GID=991 \
|
||||
HTTPSPORT=0
|
||||
|
||||
WORKDIR /libresonic
|
||||
|
||||
RUN echo "@community https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||
&& apk -U upgrade && apk add \
|
||||
ffmpeg \
|
||||
su-exec \
|
||||
libressl \
|
||||
ca-certificates \
|
||||
openjdk8-jre@community \
|
||||
tini@community \
|
||||
&& wget -q https://github.com/Libresonic/libresonic/releases/download/v${VERSION}/libresonic-v${VERSION}.war -O libresonic.war \
|
||||
&& rm -f /var/cache/apk/*
|
||||
|
||||
COPY run.sh /usr/local/bin/run.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/run.sh
|
||||
|
||||
EXPOSE 4040 4050
|
||||
|
||||
VOLUME /data /musics /playlists /podcasts
|
||||
|
||||
LABEL description "Open source media streamer" \
|
||||
libresonic "Libresonic v$VERSION" \
|
||||
maintainer="Wonderfall <wonderfall@targaryen.house>"
|
||||
|
||||
CMD ["run.sh"]
|
22
libresonic/README.md
Normal file
22
libresonic/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
## wonderfall/subsonic
|
||||
|
||||

|
||||
|
||||
#### What is Subsonic?
|
||||
Subsonic is an open-source web-based media streamer and jukebox. Supports MP3, OGG, AAC and other streamable audio and video formats. Indeed, this build comes with **transcoding abilities**.
|
||||
|
||||
#### Build-time variables
|
||||
- **VERSION** : version of subsonic
|
||||
|
||||
#### Environment variables
|
||||
- **GID** : subsonic group id.
|
||||
- **UID** : subsonic user id.
|
||||
|
||||
#### Volumes
|
||||
- **/musics** : your music files
|
||||
- **/data** : subsonic data
|
||||
|
||||
|
||||
#### Reverse proxy
|
||||
https://github.com/Wonderfall/dockerfiles/tree/master/reverse
|
||||
https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration
|
20
libresonic/run.sh
Normal file
20
libresonic/run.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /data/transcode
|
||||
ln -s /usr/bin/ffmpeg /data/transcode/ffmpeg
|
||||
ln -s /usr/bin/lame /data/transcode/lame
|
||||
|
||||
chown -R $UID:$GID /data /playlists /libresonic
|
||||
|
||||
exec su-exec $UID:$GID tini -- \
|
||||
java -Xmx256m \
|
||||
-Dlibresonic.home=/data \
|
||||
-Dlibresonic.host=0.0.0.0 \
|
||||
-Dlibresonic.port=4040 \
|
||||
-Dlibresonic.httpsPort=$HTTPSPORT \
|
||||
-Dlibresonic.contextPath=/ \
|
||||
-Dlibresonic.defaultMusicFolder=/musics \
|
||||
-Dlibresonic.defaultPodcastFolder=/podcasts \
|
||||
-Dlibresonic.defaultPlaylistFolder=/playlists \
|
||||
-Djava.awt.headless=true \
|
||||
-jar libresonic.war
|
Reference in New Issue
Block a user