From 4b8f226adb367ed6102872e2cb353a1f783e9f00 Mon Sep 17 00:00:00 2001 From: erkannt Date: Mon, 28 May 2018 22:35:09 +0200 Subject: [PATCH] Update Readme: no volumes-from, compose --- README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bfec28f..487ebd4 100644 --- a/README.md +++ b/README.md @@ -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