An open API service indexing awesome lists of open source software.

https://github.com/marcopaganini/alpine-subsonic

Docker configuration for the Subsonic Media Streamer using Alpine Linux
https://github.com/marcopaganini/alpine-subsonic

alpine-linux docker docker-image media-player mp3 music music-player subsonic web

Last synced: about 2 months ago
JSON representation

Docker configuration for the Subsonic Media Streamer using Alpine Linux

Awesome Lists containing this project

README

          

# alpine-subsonic

This repository contains configuration to build a
[Subsonic](http://subsonic.org) media streamer [Docker](http://docker.io)
container. This work was derived from [Michael
Scherig](https://github.com/mschuerig)'s [Subsonic Docker
Image](https://github.com/mschuerig/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

* Subsonic 6.0 (http://www.subsonic.org)
* Alpine Linux
* Runs as user subsonic (UID 10000)
* Drop-in replacement for Michael's [Debian Subsonic](https://hub.docker.com/r/mschuerig/debian-subsonic/) image.

## Installing

Install directly from Docker hub with:

```shell
$ docker pull mpaganini/alpine-subsonic
```

## Building your own image

It is also possible to build your own image:

```shell
$ 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.

```shell
$ mkdir /var/subsonic
$ chown subsonic /var/subsonic
$ chmod o+rwx /var/subsonic
```

* Start the container:

```shell
$ 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](https://github.com/mschuerig) 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.