/alpine-subsonic

Docker configuration for the Subsonic Media Streamer using Alpine Linux

Primary LanguageShellApache License 2.0Apache-2.0

alpine-subsonic

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).

Notes

Installing

Install directly from Docker hub with:

$ docker pull mpaganini/alpine-subsonic

Building your own image

It is also possible to build your own image:

  $ git clone http://github.com/marcopaganini/alpine-subsonic.git
  $ cd alpine-subsonic
  $ ./build.sh

Running subsonic in a container

  • 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.

Acknowledgements

Again, my thanks to Michael Schuerig for the idea and his configuration.

Feedback

If you find bugs, open a bug in Github or send a Change request with a fix. Feedback is always appreciated.