Moving docker files into subfolder for sanity

This commit is contained in:
James Barnsley
2019-04-22 14:24:10 +12:00
parent eaf744aced
commit f89e44e184
7 changed files with 16 additions and 6 deletions

9
docker/entrypoint.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if [ -z "$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 "$@"

17
docker/mopidy.conf Normal file
View File

@ -0,0 +1,17 @@
[core]
data_dir = /var/lib/mopidy
[local]
media_dir = /var/lib/mopidy/media
[audio]
output = tee name=t ! queue ! autoaudiosink t. ! queue ! udpsink host=0.0.0.0 port=5555
[m3u]
playlists_dir = /var/lib/mopidy/playlists
[http]
hostname = 0.0.0.0
[mpd]
hostname = 0.0.0.0

9
docker/pulse-client.conf Normal file
View File

@ -0,0 +1,9 @@
# Connect to the host's server using the mounted UNIX socket
default-server = unix:/run/user/105/pulse/native
# Prevent a server running in the container
autospawn = no
daemon-binary = /bin/true
# Prevent the use of shared memory
enable-shm = false