From 3884626250398e825e158b08234784a1cdd5df16 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Mon, 29 Jun 2020 02:22:04 -0500 Subject: [PATCH] add base config file --- .dockerignore | 1 + Dockerfile | 4 +++- mopidy.conf | 24 ++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 mopidy.conf diff --git a/.dockerignore b/.dockerignore index 72e8ffc..a9f9633 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ * +!mopidy.conf diff --git a/Dockerfile b/Dockerfile index a17eae3..2fe15c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,6 @@ RUN apt-get update && \ apt-get autoremove -y && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -CMD mopidy +ADD mopidy.conf /etc/mopidy.conf +CMD mopidy --config /etc/mopidy.conf:/data/config/mopidy.conf +EXPOSE 6680 diff --git a/mopidy.conf b/mopidy.conf new file mode 100644 index 0000000..8836234 --- /dev/null +++ b/mopidy.conf @@ -0,0 +1,24 @@ +[core] +cache_dir = /data/cache +config_dir = /data/config +data_dir = /data/data +restore_state = true + +[http] +enabled = true +hostname = 0.0.0.0 +port = 6680 +zeroconf = "" +allowed_origins = +csrf_protection = true + +[audio] +output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! filesink location=/data/tmp/snapfifo + +[local] +enabled = true +media_dir = /data/media + +[gmusic] + +