add group_add to compose example

This commit is contained in:
sentriz
2020-04-20 15:51:20 +01:00
parent 1f08ccf2f4
commit 5bd57c42d5

View File

@@ -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`