forked from wernight/docker-mopidy
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
34 lines (31 loc) · 1.25 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
version: '2.1'
services:
mopidy:
image: trevorj/mopidy-extras:develop # latest == stable; use :develop for development version
# reasoning for net=host is to allow for data network broadcasts
# to work easily across the lan.
network_mode: host
hostname: mopidy
volumes:
# (Optional) Maintain state across runs.
- $HOME/.local/share/mopidy:/app/.local/share/mopidy
- $HOME/.config/mopidy:/app/.config/mopidy
# --- or maybe ---
#- $XDG_DATA_HOME/mopidy:/app/.local/share/mopidy
#- $XDG_CONFIG_HOME/mopidy:/app/.config/mopidy
# (Optional) Local media directory
- $HOME/Music:/app/Music:ro
# --- or maybe ---
#- $XDG_MUSIC_HOME:/app/Music:ro
# Forward local pulseaudio (mmm cookies)
# Alternatively, you may specify PULSE_COOKIE_DATA environment variable which will
# write this file out.
- $HOME/.config/pulse:/app/.config/pulse
# --- or maybe ---
#- $XDG_CONFIG_HOME/pulse:/app/.config/pulse
environment:
- PULSE_SERVER
- PULSE_COOKIE_DATA
expose:
- 6600
- 6680