Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 2.64 KB

File metadata and controls

81 lines (63 loc) · 2.64 KB

Sonerezh with Docker

This is the Git repository of the official Docker image for Sonerezh. See the Hub page for more informations.

WARNING: the Docker image for Sonerezh is still under development. Some functionnality are broken like email notifications for example.

How to build this image

Simply clone this repository and use docker build:

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

How to use this image

Manually

You can configure your Sonerezh instance manually. First you will need to run mysql or mariadb container:

$ 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 \
								--detach mariadb

And then run Sonerezh container:

$ docker run --name sonerezh-app --link sonerezh-db:sonerezh-db \
								 --volume /path/to/music:/music \
								 --volume /path/to/thumbnails:/thumbnails \
								 --detach --publish 8080:80 \
								 sonerezh/sonerezh:latest

Your Sonerezh instance is 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.

Via docker-compose

Include the following in docker-compose.yml.

version: "2"

services:
    sonerezh-db:
        image: mariadb
        volumes:
            - "./mariadb:/var/lib/mysql"
        environment:
            MYSQL_ROOT_PASSWORD: YOUR_ROOT_PASSWORD
            MYSQL_USER: sonerezh
            MYSQL_PASSWORD: YOUR_PASSWORD
            MYSQL_DATABASE: sonerezh

    sonerezh-app:
        image: sonerezh/sonerezh:latest
        volumes:
            - "./music:/music"
            - "./thumbnails:/thumbnails"
        ports:
            - "8080:80"
        environment:
            SONEREZH_DB_PORT_3306_TCP_ADDR: sonerezh-db
            SONEREZH_DB_ENV_MYSQL_USER: sonerezh
            SONEREZH_DB_ENV_MYSQL_PASSWORD: YOUR_PASSWORD
            SONEREZH_DB_ENV_MYSQL_DATABASE: sonerezh
        depends_on:
            - sonerezh-db

After running docker-compose up -d Sonerezh should be available at http://127.0.0.1:8080

Contributing

You are invited to contribute new features, fixes, or update, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can. Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions.