add group_add to compose example
This commit is contained in:
12
README.md
12
README.md
@@ -41,21 +41,25 @@ or else you can run in docker, available on dockerhub as `sentriz/gonic`
|
|||||||
```yaml
|
```yaml
|
||||||
# example docker-compose.yml
|
# example docker-compose.yml
|
||||||
|
|
||||||
version: '3'
|
version: '2.4'
|
||||||
services:
|
services:
|
||||||
gonic:
|
gonic:
|
||||||
image: sentriz/gonic:latest
|
image: sentriz/gonic:latest
|
||||||
environment:
|
environment:
|
||||||
- TZ
|
- TZ
|
||||||
# optionally, see env vars below
|
# optionally, see more env vars below
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
devices:
|
|
||||||
- /dev/snd:/dev/snd # if using jukebox
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data # gonic db etc
|
- ./data:/data # gonic db etc
|
||||||
- /path/to/music:/music:ro # your music
|
- /path/to/music:/music:ro # your music
|
||||||
- /path/to/cache:/cache # transcode cache dir
|
- /path/to/cache:/cache # transcode cache dir
|
||||||
|
|
||||||
|
# set the following two sections if you've enabled jukebox
|
||||||
|
group_add:
|
||||||
|
- audio
|
||||||
|
devices:
|
||||||
|
- /dev/snd:/dev/snd
|
||||||
```
|
```
|
||||||
|
|
||||||
then start with `docker-compose up -d`
|
then start with `docker-compose up -d`
|
||||||
|
|||||||
Reference in New Issue
Block a user