From 85f2d23e54ef1b9afa4e8050e3daad54e17193c3 Mon Sep 17 00:00:00 2001 From: vbatts Date: Sat, 4 Sep 2021 13:20:28 -0400 Subject: [PATCH] final updates as of 2020-01-16 --- Dockerfile | 16 ++++++++-------- docker-compose.yml | 14 +++++--------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d2e839..a08061a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ -FROM debian -ENV SUBSONIC_VERSION 6.1.5 +FROM debian:9 +ENV SUBSONIC_VERSION 6.1.6 LABEL description="Subsonic media streamer" LABEL version="$SUBSONIC_VERSION" -RUN apt-get update &&\ - apt-get -y dist-upgrade &&\ - apt-get -y install openjdk-8-jre-headless wget libav-tools lame &&\ - mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\ - ln -s /usr/bin/lame /opt/data/transcode/lame &&\ - ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\ +RUN apt-get update &&\ + apt-get -y dist-upgrade &&\ + apt-get -y install openjdk-8-jre-headless wget ffmpeg lame &&\ + mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\ + ln -s /usr/bin/lame /opt/data/transcode/lame &&\ + ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\ wget "https://sourceforge.net/projects/subsonic/files/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz/download" -O subsonic.tar.gz --quiet &&\ mkdir -p /opt/subsonic &&\ tar -C /opt/subsonic -xf subsonic.tar.gz &&\ diff --git a/docker-compose.yml b/docker-compose.yml index 8f370fd..d54b387 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ version: "3" services: subsonic: - #image: vbatts/subsonic + image: vbatts/subsonic + network_mode: "host" build: context: . dockerfile: Dockerfile @@ -10,11 +11,6 @@ services: - 0.0.0.0:4043:4043/tcp restart: always volumes: - - /mnt/data/subsonic:/opt/data/ - - /mnt/data/Videos/:/opt/Videos:ro - - /mnt/data/Audio/:/opt/music:ro - - /mnt/laura/:/opt/laura:ro - - /mnt/data/storage/syncthing/Music/:/opt/syncthing:ro -#networks: -# host: -# external: true + - /mnt/data/subsonic:/opt/data/ + - /mnt/video/:/opt/Videos + - /mnt/audio/:/opt/music