-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.example.yml
executable file
·27 lines (27 loc) · 1.09 KB
/
docker-compose.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: "3"
services:
snapcast:
image: docker.io/sweisgerber/snapcast:latest
hostname: snapcast
environment:
- PUID=1000
- PGID=1000 # set to audio group ID
- TZ=Europe/Berlin
- START_SNAPCLIENT=false # set to `true` for snapclient to start
# --host: name or ip of compose service or dockerhost
# --soundcard: <ID> from `snapclient -l` from inside the container
# - SNAPCLIENT_OPTS=--host snapcast --soundcard <ID>
# => Don't use quotes for SNAPCLIENT_OPTS="" !
# - HOST_AUDIO_GROUP=<AUDIO-GID> # set to GID of host audio group
restart: "unless-stopped"
ports:
- 1704:1704 # port for the actual audio streaming
- 1705:1705 # port for TCP Json RPC
- 1780:1780 # port for the SnapWeb Webinterface
# devices:
# - /dev/snd:/dev/snd # optional, only if you want to use snapclient
volumes:
- /<path>/<to>/<snapcast>/config/:/config/
- /<path>/<to>/<snapcast>/data/:/data/
# /audio should get used to place FIFOs for audio playback from mpd/mopidy/host/etc
- /<path>/<to>/audio-fifos/:/audio/