Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
# Simple docker image for [CherryMusic](http://www.fomori.org/cherrymusic/)

## Usage

docker build -t holizz/cherrymusic .
docker run --name cherrymusic-data -v /root/.local busybox /bin/true
docker run -ti --rm -v /path/to/music:/music --volumes-from cherrymusic-data -p 3000:3000 --name cherrymusic holizz/cherrymusic
docker run -ti --rm \
-v /path/to/music:/music \
-v /path/to/persistent/data:/root/.local \
-p 3000:3000 \
--name cherrymusic holizz/cherrymusic

Then visit: http://localhost:3000/

Replace /path/to/music with the path to your music directory. If you want to change the port you have to change it in the Dockerfile too.
Replace /path/to/music with the path to your music directory.

If you want to change the port you have to change it in the Dockerfile too.

## Compose

version: '3'

services:
cherrymusic:
image: holizz/cherrymusic
networks:
- traefik_public
volumes:
- /path/to/music:/music
- /path/to/persistent/data:/root/.local

When building the docker image yourself replace `image: holizz/cherrymusic` with `build: ./cherrymusic-docker`.

When using [traefik](https://docs.traefik.io/configuration/backends/docker/) you can use the following:

labels:
- traefik.frontend.rule=Host:cherry.yourdomain.net
- traefik.port=3000