-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (53 loc) · 1.53 KB
/
docker-compose.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
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
version: "3"
services:
ympd:
build:
dockerfile: '${PWD}/ympd/Dockerfile'
context: '${PWD}/ympd'
ports:
- '${YMPD_PORT}:8080'
links:
- mpd
restart: always
logging:
options:
max-size: 1g
command: "-h mpd -p 6600 -w 8080"
mpd:
build:
args:
MPD_UID: '${MPD_UID}'
MPD_GID: '${MPD_GID}'
dockerfile: '${PWD}/mpd/Dockerfile'
context: '${PWD}/mpd'
ports:
- '${MPD_PORT}:6600'
- '${MPD_STREAM_PORT}:6680'
volumes:
- '${MEDIA_DIR}:/var/lib/mpd/media:ro'
- '${PWD}/mpdstate:/var/lib/mpd/state/:rw'
- '${PWD}/mpd/mpd.conf:/var/lib/mpd/mpd.conf:ro'
restart: always
logging:
options:
max-size: 1g
user: '${MPD_UID}'
cap_drop:
- ALL
cap_add:
- SYS_NICE # https://gitlab.alpinelinux.org/alpine/aports/-/issues/11992
snapcast:
build:
dockerfile: '$PWD/snapserver/Dockerfile'
context: '$PWD/snapserver'
ports:
- '${SNAPCAST_PORT}:1704'
volumes:
- '${PWD}/mpdstate/snapfifo:/var/lib/snapserver/soundshare/snapfifo:rw'
- '${PWD}/snapserver/snapserver.conf:/var/lib/snapserver/snapserver.conf:ro'
depends_on:
- mpd
restart: always
logging:
options:
max-size: 1g