forked from iotsound/iotsound
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
143 lines (130 loc) · 3.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
143 lines (130 loc) · 3.54 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: "2.1"
volumes:
spotifycache:
librespot-config:
karaoke-media:
karaoke-data:
# Private D-Bus socket shared between sound-supervisor (avahi-daemon host)
# and any container that needs avahi (librespot for Spotify Connect zeroconf).
iotsound-dbus:
services:
# Core services
# -- Required for a fully featured installation of IoTSound
# -- Mutiroom services can be removed if not using multiroom mode
audio:
build: ./core/audio
restart: unless-stopped
privileged: true
labels:
io.balena.features.dbus: "1"
ports:
- 4317:4317
sound-supervisor:
build:
context: .
dockerfile: ./core/sound-supervisor/Dockerfile.template
restart: unless-stopped
network_mode: host
labels:
io.balena.features.balena-api: "1"
io.balena.features.supervisor-api: "1"
io.balena.features.dbus: "1"
volumes:
- iotsound-dbus:/run/iotsound-dbus
multiroom-server:
build: ./core/multiroom/server
restart: on-failure
network_mode: host
multiroom-client:
build: ./core/multiroom/client
restart: on-failure
network_mode: host
wifi-watchdog:
build:
context: ./core/watchdog/
dockerfile: Dockerfile.template
container_name: iotsound-wifi-watchdog
privileged: true
network_mode: host
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Plugins
# -- Additional plugins can be added.
# -- Remove unwanted plugins as needed
bluetooth:
build: ./plugins/bluetooth
restart: on-failure
network_mode: host
cap_add:
- NET_ADMIN
labels:
io.balena.features.dbus: "1"
airplay:
build: ./plugins/airplay
restart: on-failure
network_mode: host
privileged: true
depends_on:
- sound-supervisor
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/iotsound-dbus/socket
labels:
io.balena.features.dbus: "1"
volumes:
- iotsound-dbus:/run/iotsound-dbus
librespot:
build: ./plugins/librespot
restart: on-failure
privileged: true
network_mode: host
depends_on:
- audio
- sound-supervisor
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/iotsound-dbus/socket
volumes:
- librespot-config:/config
- iotsound-dbus:/run/iotsound-dbus
hostname:
build: ./core/hostname
restart: unless-stopped
labels:
io.balena.features.supervisor-api: "1"
# Debug toolkit — stays running only when LOG_LEVEL=debug is set on the device,
# exits immediately otherwise. Use: balena ssh <uuid> -s support-toolkit
# LOG_LEVEL=debug also enables verbose output in sound-supervisor, audio, and librespot.
support-toolkit:
image: kb2ma/support-toolkit
network_mode: host
restart: "no"
entrypoint: ["sh", "-c", "if [ \"$LOG_LEVEL\" = \"debug\" ]; then exec sleep infinity; else exit 0; fi"]
# Karaoke plugin
karaoke-fetcher:
build: ./plugins/karaoke/fetcher
restart: on-failure
environment:
- MEDIA_PATH=/data/media
- KARAOKE_QUALITY=720
volumes:
- karaoke-media:/data/media
karaoke:
build: ./plugins/karaoke/app
restart: on-failure
ports:
- 8080:8080
environment:
- PULSE_SERVER=tcp:172.17.0.1:4317
- SOUND_SUPERVISOR_URL=http://172.17.0.1:80
- KARAOKE_QUALITY=720
- KARAOKE_MAX_QUEUE_PER_SINGER=3
volumes:
- karaoke-media:/data/media
- karaoke-data:/data/app
depends_on:
- audio
- sound-supervisor
- karaoke-fetcher