mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
UNMAINTAINED
This commit is contained in:
32
unmaintained/libresonic/Dockerfile
Normal file
32
unmaintained/libresonic/Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
ARG VERSION=6.2
|
||||
|
||||
ENV UID=991 GID=991
|
||||
|
||||
WORKDIR /libresonic
|
||||
|
||||
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.6/community" >> /etc/apk/repositories \
|
||||
&& apk -U upgrade && apk add \
|
||||
ffmpeg \
|
||||
su-exec \
|
||||
libressl \
|
||||
ca-certificates \
|
||||
openjdk8-jre@community \
|
||||
tini \
|
||||
&& 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
|
||||
|
||||
VOLUME /data /musics /playlists /podcasts
|
||||
|
||||
LABEL description="Open source media streamer" \
|
||||
libresonic="Libresonic v$VERSION" \
|
||||
maintainer="Wonderfall <wonderfall@targaryen.house>"
|
||||
|
||||
CMD ["run.sh"]
|
42
unmaintained/libresonic/README.md
Normal file
42
unmaintained/libresonic/README.md
Normal file
@ -0,0 +1,42 @@
|
||||
## wonderfall/libresonic
|
||||
|
||||

|
||||
|
||||
#### What is Libresonic?
|
||||
Libresonic 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**. More info here : https://libresonic.github.io/
|
||||
|
||||
#### Build-time variables
|
||||
- **VERSION** : version of libresonic
|
||||
|
||||
#### Environment variables
|
||||
- **GID** : subsonic group id.
|
||||
- **UID** : subsonic user id.
|
||||
- **HTTPS_PORT** : set if you access Libresonic through HTTPS *(default : 0 = disabled)*
|
||||
|
||||
#### Volumes
|
||||
- **/musics** : your music files
|
||||
- **/data** : subsonic data
|
||||
|
||||
#### Port
|
||||
- 4040
|
||||
|
||||
#### Reverse proxy
|
||||
https://github.com/Wonderfall/dockerfiles/tree/master/reverse
|
||||
|
||||
https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration
|
||||
|
||||
Libresonic does not support SSL/TLS by itself. If you want to use Libresonic through https, this is what I'm using :
|
||||
|
||||
```
|
||||
location / {
|
||||
proxy_pass http://libresonic:4040;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Server $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_max_temp_file_size 0;
|
||||
proxy_redirect http:// https://;
|
||||
}
|
||||
```
|
22
unmaintained/libresonic/run.sh
Normal file
22
unmaintained/libresonic/run.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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 \
|
||||
-Dserver.host=0.0.0.0 \
|
||||
-Dserver.port=4040 \
|
||||
-Dserver.contextPath=/ \
|
||||
-Dlibresonic.home=/data \
|
||||
-Dlibresonic.host=0.0.0.0 \
|
||||
-Dlibresonic.port=4040 \
|
||||
-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