From bec31482b985c9bdee1fdfe87bb573bc56747509 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 8 Sep 2020 21:51:40 -0400 Subject: [PATCH] Update subsonic.sh --- subsonic.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/subsonic.sh b/subsonic.sh index 0043bd2..204b2bb 100644 --- a/subsonic.sh +++ b/subsonic.sh @@ -1,8 +1,13 @@ +mkdir -p /var/lib/docker/storage/airsonic/{music,podcasts,playlists,data} && chmod -Rf 777 /var/lib/docker/storage/airsonic + docker run -d \ ---name=subsonic \ ---hostname subsonic \ +--name=airsonic \ +--hostname airsonic \ --restart=always \ --privileged \ -p 4040:4040 \ --v /mnt/media/Music:/var/music:ro \ -registry.casjay.in/latest/subsonic:6 \ No newline at end of file +-v /var/lib/docker/storage/airsonic/music:/airsonic/music:z \ +-v /var/lib/docker/storage/airsonic/podcasts:/airsonic/podcasts:z \ +-v /var/lib/docker/storage/airsonic/playlists:/airsonic/playlists:z \ +-v /var/lib/docker/storage/airsonic/data:/airsonic/data:z \ +airsonic/airsonic:latest