This repository contains configuration to build a Subsonic media streamer Docker container. This work was derived from Michael Scherig's Subsonic Docker Image repo, but uses Alpine Linux as the base container for a smaller footprint (about 250M vs 512M for the Debian based version).
- Subsonic 6.0 (http://www.subsonic.org)
- Alpine Linux
- Runs as user subsonic (UID 10000)
- Drop-in replacement for Michael's Debian Subsonic image.
Install directly from Docker hub with:
$ docker pull mpaganini/alpine-subsonic
It is also possible to build your own image:
$ git clone http://github.com/marcopaganini/alpine-subsonic.git
$ cd alpine-subsonic
$ ./build.sh
-
Create user subsonic on your host computer, uid 10000
-
For the example below, we assume your media is under
/var/music_on_host
and can be read by uid 10000 on the host computer. (either chmod your entire media library o+rX or set it to the correct uid/gid). Feel free to change the media directory to match your reality. -
We'll save state under
/var/subsonic
on the host computer. This makes it easier to update the containers and backup state information.
$ mkdir /var/subsonic
$ chown subsonic /var/subsonic
$ chmod o+rwx /var/subsonic
- Start the container:
$ docker run \
--detach \
--publish 4040:4040 \
--volume "/var/music_on_host:/var/music:ro" \
--volume "/var/subsonic:/var/subsonic" \
mpaganini/alpine-subsonic
Point your browser to http://your_host:4040 and proceed with the web-based Subsonic setup. See Subsonic's home page at http://subsonic.org for documentation.
Again, my thanks to Michael Schuerig for the idea and his configuration.
If you find bugs, open a bug in Github or send a Change request with a fix. Feedback is always appreciated.