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