Adding docker compose to keep mapping easy

This commit is contained in:
James Barnsley
2019-08-01 14:47:25 +12:00
parent 8dd4906a78
commit 841f0b5c25
3 changed files with 30 additions and 4 deletions

View File

@ -41,6 +41,8 @@ RUN set -ex \
&& cd / \
&& mkdir -p /var/lib/mopidy/.config \
&& ln -s /config /var/lib/mopidy/.config/mopidy \
# Allow mopidy user to run system commands (restart, local scan, etc)
&& echo "mopidy ALL=NOPASSWD: /iris/mopidy_iris/system.sh" >> /etc/sudoers \
# Install Snapcast
# This is the most reliable way to get audio out of a Docker instance.
&& curl -L https://github.com/badaix/snapcast/releases/download/v0.15.0/snapserver_0.15.0_amd64.deb -o snapserver.deb \

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: '3'
services:
mopidy:
image: jaedb/iris
build:
context: ./
ports:
- 6681:6680
volumes:
- ./:/iris
- /Users/james/Sites/music:/var/lib/mopidy/media

View File

@ -1,17 +1,30 @@
[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
playlists_dir = /music
[http]
hostname = 0.0.0.0
[mpd]
hostname = 0.0.0.0
[local-images]
library = sqlite
[local]
library = images
media_dir = /music
[spotify]
client_id = babbc426-054c-4949-a4c5-06da85dd4494
client_secret = Wy8wmKhubiyY1dhbrPSdg92lxX2wMTVGczbVwh89X6Q=
username = jaedb
password = swedisH189
[soundcloud]
auth_token = 1-35204-42997920-d62091fd310537a