-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
77 lines (77 loc) · 2.2 KB
/
docker-compose.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.6"
volumes:
snapserver-settings:
snapserver-fifo:
services:
snapclient:
image: mgoltzsche/snapcast/snapclient:dev
environment:
SNAPCLIENT_HOST: 127.0.0.1
#SNAPCLIENT_PLAYER: pulse:server=tcp:127.0.0.1:4713
network_mode: host
restart: unless-stopped
# Might be required on a raspberrypi when using alsa directly
#privileged: true
devices:
- "/dev/snd:/dev/snd"
volumes:
#- type: bind
# source: /etc/asound.conf
# target: /etc/asound.conf
- type: bind
source: /run # allow the container to detect whether the pulseaudio unix socket should be used
target: /host/run
- type: bind
source: /etc # allow the container to use host's /etc/asound.conf if present
target: /host/etc
read_only: true
user: ${UID:-1000}:${UID:-1000}
#profiles:
#- audio-sink
snapserver:
image: mgoltzsche/snapcast/snapserver:dev
environment:
SNAPSERVER_SOURCE: pipe:///snapserver/snapfifo?name=default&mode=read
#SNAPSERVER_BUFFER_MS: 20
# Advertize avahi service
DBUS_SYSTEM_BUS_ADDRESS: unix:path=/host/run/dbus/system_bus_socket
volumes:
- snapserver-fifo:/snapserver
- snapserver-settings:/data
- type: bind
# allow the container to dynamically select the pulseaudio and dbus unix socket, if supported by the host
source: /run
target: /host/run
network_mode: host
#ports:
#- "1780:1780"
#- "1704:1704"
#- "1705:1705"
#user: ${UID:-1000}:${UID:-1000} # unprivileged user cannot advertize avahi service
user: root:root
privileged: true
group_add:
- 4242
- 86
restart: unless-stopped
labels:
- podpourpi.avahi.advertize=true # TODO: feasibility check? -> not worth it
depends_on:
- mopidy
#profiles:
#- audio-source
mopidy:
image: mgoltzsche/mopidy:dev
environment:
MOPIDY_AUDIO_OUTPUT_PIPE: /snapserver/snapfifo
volumes:
- snapserver-fifo:/snapserver
ports:
- "6680:6680"
labels:
- traefik.enable=true
- traefik.http.routers.myapp.rule=PathPrefix("/iris")
- traefik.http.routers.myapp.entrypoints=web
restart: unless-stopped
#profiles:
#- audio-source