-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
64 lines (50 loc) · 2.15 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
56
57
58
59
60
61
62
63
64
version: '3.5'
services:
mopidy:
container_name: mopidy
restart: always
## Run container as root
# This is required to modify the PUID and PGID by entrypoint script
user: root
## Run cointainer in privileged mode (can help with permission issues)
# privileged: true
## Add container to audio group
# change group name or id to your system's audio group
group_add:
- audio
## Add audio device
# Change to your system's audio device
devices:
- /dev/snd
volumes:
# Mopidy config files
- './config:/config'
# Local media dir
#- './media:/media:ro'
# Store mopidy library and images on host (persistent)
#- './local:$HOME/local'
# Keep spotify credetnials (persistent)
#- './.spotify:$HOME/spotify'
## Host Audio Support
# --- ALSA ---
# Mopidy Config: [audio] output=alsasink
# Optional: If you have specific configurations or adjustments defined
#- /etc/asound.conf:/etc/asound.conf
#- /usr/share/alsa:/usr/share/alsa
# --- PulseAudio ---
# Mopidy Config: [audio] output=pulsesink
# PulseAudio config (path should match with PUID)
- $XDG_RUNTIME_DIR/pulse/native:/tmp/pulseaudio.socket # socket
ports:
- '6600:6600' # JSON-RPC API and MPD protocol
- '6680:6680' # HTTP WebUI
image: 'jojo141185/mopidy:latest' # ImageName:Version
environment:
# Set mopidy user and audio group id to match host's specific permissions
- PUID=1000
- PGID=29
# PulseAudio server socket for communication (path should match with PUID)
- PULSE_SERVER=unix:/tmp/pulseaudio.socket
#- PULSE_COOKIE=/tmp/pulseaudio.cookie # (optional)
# Install additional pip packages
#- PIP_PACKAGES=Mopidy-TuneIn Mopidy-Youtube yt-dlp