-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
executable file
·39 lines (39 loc) · 1.72 KB
/
Copy pathdocker-compose.example.yml
File metadata and controls
executable file
·39 lines (39 loc) · 1.72 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
version: "3"
services:
mopidy:
image: docker.io/sweisgerber/mopidy:v3.4
hostname: mopidy
environment:
- PUID=1000 # user ID which the mopidy service will run as, needs permissions to access the music
- PGID=1000 # group ID which the mopidy service will run as, needs permissions to access the music
- TZ=Europe/Berlin
#
# https://github.com/linuxserver/docker-mods/tree/universal-package-install
#
# Set alpine or pip package ENV vars for further mopidy extensions
#
- DOCKER_MODS=linuxserver/mods:universal-package-install
- INSTALL_PIP_PACKAGES=Mopidy-Beets|Mopidy-dLeyna|Mopidy-InternetArchive|Mopidy-TuneIn|Mopidy-YTMusic
# - INSTALL_PACKAGES=mopidy-podcast
restart: "unless-stopped"
ports:
- 6600:6600 # Remote Control port for MPD
- 6680:6680 # HTML API & Webinterface port for accessing mopidy
# devices:
# - /dev/snd:/dev/snd # optional, needed if you want to play to host audio devices.
volumes:
- $MOPIROOM_FOLDER/config/:/config/
# contains mopidy configured FIFO location,
# check mopidy.conf <https://github.com/sweisgerber/docker-mopidy/blob/main/root/defaults/mopidy.conf>
# will get used by snapcast and streamed to the network.
#
# ```conf
# [audio]
# output = (...) location=/data/audio/snapcast_fifo
# ```
#
# mopidy--FIFO-in-FileSystem-->SnapServer--LAN-Stream-->SnapClient
#
- $MOPIROOM_FOLDER/data/:/data/
- $MOPIROOM_FOLDER/:/music/:ro # READ-ONLY & optional (needed if you want to play audio files from host)
# One should use snapcast along mopidy/iris, use https://github.com/sweisgerber/docker-snapcast/blob/main/docker-compose.example.yml