Sign inSign up

mrporcles/sonerezh

By mrporcles

Updated about 5 years ago

Sonerezh is a self-hosted web application which allows you to listen to your music, from anywhere.

Image
0

3.7K

mrporcles/sonerezh repository overview

Docker container for sonerezh

This is a docker container for sonerezh which is a self-hosted web application which allows you to listen to your music, from anywhere. It is rebuilt daily and pushed under the latest tag.

How to build this image

The source for this image is located here. Simply clone that repository and use docker build:

$ git clone --master https://github.com/mrporcles/docker-sonerezh.git
$ cd nginx
$ docker build --tag sonerezh .

How to use this image

Sonerezh uses a mysql or mariadb database for its backend so you will need to have one running prior to starting this container. This can be done using the following command:

docker run --name sonerezh-db --env MYSQL_ROOT_PASSWORD=changeme \
						     --env MYSQL_USER=sonerezh \
						     --env MYSQL_PASSWORD=changemetoo \
						     --env MYSQL_DATABASE=sonerezh \
						     --volume /path/to/mysql/data:/var/lib/mysql

Once the database backend is running you can use the values configured above to populate environment variables which are used by this container to connect to the backend database:

  • SONEREZH_DB_ENV_MYSQL_DATABASE - Backend database name
  • SONEREZH_DB_ENV_MYSQL_USER - Backend database user
  • SONEREZH_DB_ENV_MYSQL_PASSWORD - Backend database password
  • SONEREZH_DB_PORT_3306_TCP_ADDR - Backend database IP/Port. You can also use docker link to attach to database running in another container.

You will also need two volumes mounted into the container. One for the location of the music you wish to play and one for the thumbnails which are generated for the album art upon scanning.

You can now run the container by using the following command:

docker run -d --name='Sonerezh' -e 'SONEREZH_DB_ENV_MYSQL_PASSWORD'='changemetoo' \
                                -e 'SONEREZH_DB_PORT_3306_TCP_ADDR'='192.168.0.100' \
                                -e 'SONEREZH_DB_ENV_MYSQL_DATABASE'='sonerezh' \
                                -e 'SONEREZH_DB_ENV_MYSQL_USER'='sonerezh' \
                                -p '8080:80/tcp' \
                                -v '/mnt/music':'/music':'ro' \
                                -v '/mnt/music/thumbnails':'/thumbnails':'rw' \
                                'mrporcles/sonerezh'

Accessing the app

Your Sonerezh instance will be available at http://127.0.0.1:8080. Make sure Sonerezh have read access to /path/to/music and read/write access to /path/to/thumbnails.

Tag summary

Content type

Image

Digest

Size

496.1 MB

Last updated

about 5 years ago

docker pull mrporcles/sonerezh