Init
This commit is contained in:
49
base/Dockerfile
Normal file
49
base/Dockerfile
Normal file
@@ -0,0 +1,49 @@
|
||||
FROM debian:jessie
|
||||
MAINTAINER Wouter Habets (wouterhabets@gmail.com)
|
||||
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
curl \
|
||||
&& curl -L https://apt.mopidy.com/mopidy.gpg -o /tmp/mopidy.gpg \
|
||||
&& curl -L https://apt.mopidy.com/mopidy.list -o /etc/apt/sources.list.d/mopidy.list \
|
||||
&& apt-key add /tmp/mopidy.gpg \
|
||||
&& apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
mopidy \
|
||||
mopidy-scrobbler \
|
||||
mopidy-soundcloud \
|
||||
mopidy-spotify \
|
||||
mopidy-spotify-tunigo \
|
||||
mopidy-tunein \
|
||||
git \
|
||||
gstreamer0.10-plugins-bad \
|
||||
gstreamer0.10-alsa \
|
||||
gstreamer1.0-libav \
|
||||
python-crypto \
|
||||
python-setuptools
|
||||
|
||||
RUN curl -L https://bootstrap.pypa.io/get-pip.py | python -
|
||||
RUN pip install -U six \
|
||||
&& pip install markerlib \
|
||||
&& pip install Mopidy-YouTube \
|
||||
&& pip install Mopidy-Local-SQLite \
|
||||
&& pip install --upgrade pafy
|
||||
|
||||
ADD mopidy.conf /var/lib/mopidy/.config/mopidy/mopidy.conf
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chown mopidy:audio -R /var/lib/mopidy/.config \
|
||||
&& chown mopidy:audio /entrypoint.sh
|
||||
|
||||
USER mopidy
|
||||
|
||||
VOLUME /var/lib/mopidy/local
|
||||
VOLUME /var/lib/mopidy/media
|
||||
VOLUME /var/lib/mopidy/.config/mopidy/account-config
|
||||
|
||||
EXPOSE 6600
|
||||
EXPOSE 6680
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["/usr/bin/mopidy"]
|
||||
10
base/accounts.conf
Normal file
10
base/accounts.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
[spotify]
|
||||
username=
|
||||
password=
|
||||
|
||||
[scrobbler]
|
||||
username=
|
||||
password=
|
||||
|
||||
[soundcloud]
|
||||
auth_token=
|
||||
11
base/entrypoint.sh
Executable file
11
base/entrypoint.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
mopidy local scan
|
||||
|
||||
if [[ "$PULSE_COOKIE_DATA" != "" ]]
|
||||
then
|
||||
echo -ne $(echo $PULSE_COOKIE_DATA | sed -e 's/../\\x&/g') >$HOME/pulse.cookie
|
||||
export PULSE_COOKIE=$HOME/pulse.cookie
|
||||
fi
|
||||
|
||||
exec /usr/bin/mopidy --config /var/lib/mopidy/.config/mopidy/mopidy.conf:/var/lib/mopidy/.config/mopidy/account-config/accounts.conf
|
||||
107
base/mopidy.conf
Normal file
107
base/mopidy.conf
Normal file
@@ -0,0 +1,107 @@
|
||||
# For further information about options in this file see:
|
||||
# http://docs.mopidy.com/
|
||||
#
|
||||
# The initial commented out values reflect the defaults as of:
|
||||
# Mopidy 0.19.4
|
||||
# Mopidy-HTTP 0.19.4
|
||||
# Mopidy-Local 0.19.4
|
||||
# Mopidy-MPD 0.19.4
|
||||
# Mopidy-SoftwareMixer 0.19.4
|
||||
# Mopidy-Stream 0.19.4
|
||||
#
|
||||
# Available options and defaults might have changed since then,
|
||||
# run `mopidy config` to see the current effective config and
|
||||
# `mopidy --version` to check the current version.
|
||||
|
||||
[logging]
|
||||
#color = true
|
||||
#console_format = %(levelname)-8s %(message)s
|
||||
#debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
|
||||
#debug_file = mopidy.log
|
||||
#config_file =
|
||||
|
||||
[audio]
|
||||
#mixer = software
|
||||
mixer_volume = 10
|
||||
#output = autoaudiosink
|
||||
#visualizer =
|
||||
|
||||
[proxy]
|
||||
#scheme =
|
||||
#hostname =
|
||||
#port =
|
||||
#username =
|
||||
#password =
|
||||
|
||||
[local]
|
||||
enabled = true
|
||||
#library = json
|
||||
media_dir = /var/lib/mopidy/media
|
||||
data_dir = /var/lib/mopidy/local
|
||||
#playlists_dir = /var/lib/mopidy/playlists
|
||||
#scan_timeout = 1000
|
||||
#scan_flush_threshold = 1000
|
||||
#excluded_file_extensions =
|
||||
# .directory
|
||||
# .html
|
||||
# .jpeg
|
||||
# .jpg
|
||||
# .log
|
||||
# .nfo
|
||||
# .png
|
||||
# .txt
|
||||
|
||||
[mpd]
|
||||
enabled = true
|
||||
hostname = 0.0.0.0
|
||||
port = 6600
|
||||
#password = dada123
|
||||
max_connections = 20
|
||||
connection_timeout = 60
|
||||
zeroconf = Mopidy MPD server on $hostname
|
||||
|
||||
[softwaremixer]
|
||||
#enabled = true
|
||||
|
||||
[http]
|
||||
enabled = true
|
||||
hostname = 0.0.0.0
|
||||
port = 6680
|
||||
#static_dir =
|
||||
zeroconf = Mopidy HTTP server on $hostname
|
||||
|
||||
[stream]
|
||||
enabled = true
|
||||
protocols =
|
||||
http
|
||||
https
|
||||
mms
|
||||
rtmp
|
||||
rtmps
|
||||
rtsp
|
||||
#metadata_blacklist =
|
||||
#timeout = 5000
|
||||
|
||||
[spotify]
|
||||
enabled = true
|
||||
#username =
|
||||
#password =
|
||||
bitrate = 320
|
||||
|
||||
[spotify_tunigo]
|
||||
enabled = true
|
||||
region = all
|
||||
|
||||
[tunein]
|
||||
enabled = false
|
||||
|
||||
[soundcloud]
|
||||
enabled = true
|
||||
#auth_token =
|
||||
|
||||
[scrobbler]
|
||||
enabled = true
|
||||
#username =
|
||||
#password =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user