-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,27 +23,20 @@ Black candy support mp3, m4a, ogg, oga, opus, flac, wma and wav formats now. | |
|
||
Black candy has built [docker images](https://hub.docker.com/r/blackcandy/blackcandy). You can use docker compose to run all services. | ||
|
||
First, you should create `docker-compose.yml` file for black candy. | ||
First, you should ensure your music files stored under "/media_data" | ||
|
||
Here is the example [docker-compose.yml](https://raw.githubusercontent.com/aidewoode/black_candy/v1.1.0/docker-compose.yml) you can use. You can also change the `docker-compose.yml` for your own needs. | ||
|
||
Second, set `BLACK_CANDY_MEDIA_PATH` and `BLACK_CANDY_SECRET_KEY_BASE` environment variable on your sever and point `BLACK_CANDY_MEDIA_PATH` to the readable directory on your server to store your music files. | ||
|
||
```shell | ||
# Like this | ||
$ export BLACK_CANDY_MEDIA_PATH="/example_media_path" | ||
$ export BLACK_CANDY_SECRET_KEY_BASE="your_secret_key" | ||
``` | ||
|
||
Finally run: | ||
Then run: | ||
|
||
```shell | ||
$ curl https://raw.githubusercontent.com/aidewoode/black_candy/v1.1.1/docker-compose.yml > docker-compose.yml | ||
$ docker-compose up -d | ||
``` | ||
That's all. Now, you can use initial admin user to login (email: [email protected], password: foobar). | ||
|
||
That's all. | ||
You can also change the `docker-compose.yml` for your own needs. | ||
|
||
You can use initial admin user to login (email: [email protected], password: foobar). | ||
> **Note:** When the SECRET_KEY_BASE environment variable is not set, Black candy will generate SECRET_KEY_BASE environment variable every time when service start up. | ||
> This will cause old sessions invalid, You can set your own SECRET_KEY_BASE environment variable on docker service to avoid it. | ||
## Try in PWD | ||
|
||
|