Improve README.md
This commit is contained in:
@@ -23,6 +23,7 @@ RUN apt-get update \
|
|||||||
python-setuptools
|
python-setuptools
|
||||||
|
|
||||||
RUN curl -L https://bootstrap.pypa.io/get-pip.py | python -
|
RUN curl -L https://bootstrap.pypa.io/get-pip.py | python -
|
||||||
|
RUN pip install --ignore-installed Mopidy-Iris
|
||||||
RUN pip install -U six \
|
RUN pip install -U six \
|
||||||
&& pip install markerlib \
|
&& pip install markerlib \
|
||||||
&& pip install Mopidy-YouTube \
|
&& pip install Mopidy-YouTube \
|
||||||
@@ -30,7 +31,6 @@ RUN pip install -U six \
|
|||||||
&& pip install Mopidy-Local-Images \
|
&& pip install Mopidy-Local-Images \
|
||||||
&& pip install Mopidy-Party \
|
&& pip install Mopidy-Party \
|
||||||
&& pip install Mopidy-Simple-Webclient \
|
&& pip install Mopidy-Simple-Webclient \
|
||||||
&& pip install Mopidy-Iris \
|
|
||||||
&& pip install Mopidy-MusicBox-Webclient \
|
&& pip install Mopidy-MusicBox-Webclient \
|
||||||
&& pip install Mopidy-API-Explorer \
|
&& pip install Mopidy-API-Explorer \
|
||||||
&& pip install Mopidy-Mopify
|
&& pip install Mopidy-Mopify
|
||||||
|
|||||||
28
README.md
28
README.md
@@ -24,20 +24,23 @@ Uses Pulseaudio for audio output.
|
|||||||
```bash
|
```bash
|
||||||
docker run \
|
docker run \
|
||||||
--name mopidy \
|
--name mopidy \
|
||||||
-e PULSE_SERVER=tcp:127.0.0.1:4713 \ # Pulseaudio server
|
-e PULSE_SERVER=tcp:0.0.0.0:4713 \ # Pulseaudio server. Point to external IP of Pulse server
|
||||||
-v $PWD/media:/media:ro \ # Media files
|
-v $PWD/media:/media:ro \ # Media files
|
||||||
-v $PWD/data:/var/lib/mopidy \ # Mopidy data and cache
|
-v $PWD/data:/var/lib/mopidy \ # Mopidy data and cache
|
||||||
-v $PWD/mopidy.conf:/mopidyconf \ # Override config (for accounts)
|
-v $PWD/mopidy.conf:/mopidy.conf \ # Override config (for accounts)
|
||||||
-p 6600:6600 \ # Port for MPD
|
-p 6600:6600 \ # Port for MPD
|
||||||
-p 6680:6680 \ # Port for the webinterface
|
-p 6680:6680 \ # Port for the webinterface
|
||||||
-p 6681:6681 \ # (Optional) Port for Iris pusher service
|
-p 6681:6681 \ # (Optional) Port for Iris pusher service
|
||||||
whhoesj/mopidy
|
whhoesj/mopidy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Sound
|
||||||
|
To get sound, run a Pulseaudio server with tcp enabled. Point the `PULSE_SERVER` environment variable in the container to the external IP of the machine running the Pulseaudio server.
|
||||||
|
|
||||||
## Volumes
|
## Volumes
|
||||||
To keep the Mopidy data persistent, `/var/lib/mopidy` should be mounted as a volume. The Mopidy user must have write access to this directory. Set this with `chown -R 105 /path/to/data`.
|
To keep the Mopidy data persistent, `/var/lib/mopidy` should be mounted as a volume. The Mopidy user must have write access to this directory. Set this with `chown -R 105 /path/to/data`.
|
||||||
|
|
||||||
## Accounts
|
## Configuration
|
||||||
To add Spotify, Last.FM etc. accounts, use the `/mopidy.conf` file. Example:
|
To add Spotify, Last.FM etc. accounts, use the `/mopidy.conf` file. Example:
|
||||||
```
|
```
|
||||||
[spotify]
|
[spotify]
|
||||||
@@ -55,5 +58,22 @@ enabled = true
|
|||||||
auth_token =
|
auth_token =
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This same file can be used to override parts of the default configuration. For example: by default, the file browser in Mopidy is disabled to enable it:
|
||||||
|
```
|
||||||
|
[file]
|
||||||
|
enable = true
|
||||||
|
```
|
||||||
|
The complete default config can be found in the file [mopidy.conf](./mopidy.conf)
|
||||||
|
|
||||||
## Local media
|
## Local media
|
||||||
To play local media files, mount `/media`. All meta data will be stored using Mopidy-Local-SQLite. To scan for new media files, run `docker exec -it mopidy localscan`.
|
To play local media files, mount `/media`. All meta data will be stored using Mopidy-Local-SQLite. To scan for new media files, run `docker exec -it mopidy localscan`.
|
||||||
|
|
||||||
|
## Adding extensions
|
||||||
|
To add extensions, I advice to override this image by creating your own Dockerfile.
|
||||||
|
In the example below, the material webclient is added. To add packages, we switch to the root user, run `pip` to add everything we need and switch back to the `mopidy` user.
|
||||||
|
```Dockerfile
|
||||||
|
FROM whhoesj/mopidy:latest
|
||||||
|
USER root
|
||||||
|
RUN pip install
|
||||||
|
USER mopidy
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user