You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Black Candy is a self-hosted music streaming server, your personal music center.
13
+
Black Candy is a self-hosted music streaming server, your personal music center.
14
14
15
15
## Try The Demo
16
16
@@ -24,21 +24,20 @@ Please visit <https://demo.blackcandy.org> and use demo user (email: admin@admin
24
24
Black Candy uses docker image to install easily. You can run Black Candy like this.
25
25
26
26
```shell
27
-
docker run -p 3000:3000 ghcr.io/blackcandy-org/blackcandy:latest
27
+
docker run -p 80:80 ghcr.io/blackcandy-org/blackcandy:latest
28
28
29
29
# Or pull from Docker Hub.
30
-
docker run -p 3000:3000 blackcandy/blackcandy:latest
30
+
docker run -p 80:80 blackcandy/blackcandy:latest
31
31
```
32
32
33
-
That's all. Now, you can access either http://localhost:3000 or http://host-ip:3000 in a browser, and use initial admin user to log in (email: [email protected], password: foobar).
33
+
That's all. Now, you can access either http://localhost or http://host-ip in a browser, and use initial admin user to log in (email: [email protected], password: foobar).
34
34
35
35
## Upgrade
36
36
37
-
> [!IMPORTANT]
38
-
> If you upgrade to a major version, you need to read the upgrade guide carefully before upgrade. Because there are some breaking changes in a major version.
39
-
>
40
-
> - See [V3 Upgrade](https://github.com/blackcandy-org/blackcandy/blob/master/docs/v3_upgrade.md) for upgrade from V2 release.
41
-
> - See [Edge Upgrade](https://github.com/blackcandy-org/blackcandy/blob/master/docs/edge_upgrade.md) for upgrade from edge release to latest stable release.
37
+
> [!IMPORTANT]
38
+
> If you upgrade to a new version, you need to read the upgrade guide carefully before upgrade. Because there are may some breaking changes in a new version.
39
+
>
40
+
> Please Check the [Upgrade Guide](https://github.com/blackcandy-org/blackcandy/blob/master/docs/upgrade.md) for upgrading to a new version
42
41
43
42
Upgrade Black Candy is pull new image from remote. Then remove an old container and create a new one.
44
43
@@ -71,13 +70,13 @@ For Android app, you can also download APK from [GitHub Release](https://github.
71
70
72
71
### Port Mapping
73
72
74
-
Black Candy exports the 3000 port. If you want to be able to access it from the host, you can use the `-p` option to map the port.
73
+
Black Candy exports the 80 port. If you want to be able to access it from the host, you can use the `-p` option to map the port.
75
74
76
75
```shell
77
-
docker run -p 3000:3000 ghcr.io/blackcandy-org/blackcandy:latest
76
+
docker run -p 3000:80 ghcr.io/blackcandy-org/blackcandy:latest
78
77
```
79
78
80
-
### Media Files Mounts
79
+
### Media Files Mounts
81
80
82
81
You can mount media files from host to container and use `MEDIA_PATH` environment variable to set the media path for black candy.
83
82
@@ -103,41 +102,12 @@ mkdir storage_data
103
102
docker run -v ./storage_data:/app/storage ghcr.io/blackcandy-org/blackcandy:latest
104
103
```
105
104
106
-
### Nginx To Send File
107
-
108
-
Black Candy supports use Nginx to delivery audio file to the client. It's a more effective way than handled by Black Candy backend. And Black Candy docker image is also ready for [nginx-proxy](https://github.com/nginx-proxy/nginx-proxy), which means you can set up a Nginx proxy for Black Candy easily.
109
-
110
-
You can use docker-compose to set up those services. The docker-compose.yml file looks like this:
When mounting volumes, you may encounter permission issues between the host and the Docker container. To resolve this issue, pass the UID and GID with the `--user` to set the same UID and GID as your host user.
139
108
140
-
docker-compose up
109
+
```shell
110
+
docker run --user 2000:2000 -v ./storage_data:/app/storage ghcr.io/blackcandy-org/blackcandy:latest
141
111
```
142
112
143
113
### Logging
@@ -146,15 +116,17 @@ Black Candy logs to `STDOUT` by default. So if you want to control the log, Dock
146
116
147
117
## Environment Variables
148
118
149
-
| Name | Default | Description |
150
-
| --- | --- | --- |
151
-
| DB_URL || The URL of PostgreSQL database. You must set this environment variable if you use PostgreSQL as database. |
152
-
| MEDIA_PATH || You can use this environment variable to set media path for Black Candy, otherwise you can set media path in settings page. |
153
-
| DB_ADAPTER | "sqlite" | There are two adapters are supported, "sqlite" and "postgresql".|
| DB_URL || The URL of PostgreSQL database. You must set this environment variable if you use PostgreSQL as database. |
122
+
| CABLE_DB_URL || The URL of Pub/Sub database. You must set this environment variable if you use PostgreSQL as database. |
123
+
| QUEUE_DB_URL || The URL of background job database. You must set this environment variable if you use PostgreSQL as database. |
124
+
| CACHE_DB_URL || The URL of cache database. You must set this environment variable if you use PostgreSQL as database. |
125
+
| MEDIA_PATH || You can use this environment variable to set media path for Black Candy, otherwise you can set media path in settings page. |
126
+
| DB_ADAPTER | "sqlite" | There are two adapters are supported, "sqlite" and "postgresql". |
155
127
| SECRET_KEY_BASE || 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. |
156
-
| FORCE_SSL | false | Force all access to the app over SSL. |
157
-
| DEMO_MODE | false | Whether to enable demo mode, when demo mode is on, all users cannot access administrator privileges, even user is admin. And also users cannot change their profile. |
128
+
| FORCE_SSL | false | Force all access to the app over SSL. |
129
+
| DEMO_MODE | false | Whether to enable demo mode, when demo mode is on, all users cannot access administrator privileges, even user is admin. And also users cannot change their profile. |
158
130
159
131
## Edge Version
160
132
@@ -213,9 +185,8 @@ $ rails lint:all
213
185
214
186
Black Candy support get artist and album image from Discogs API. You can create an API token from Discogs and set Discogs token on Setting page to enable it.
0 commit comments