Upgrade to Mopidy 3

This commit is contained in:
Wouter Habets
2020-12-28 12:42:19 +01:00
parent 35694836c9
commit c1fcb9458c
9 changed files with 77 additions and 64 deletions

View File

@@ -1,23 +1,17 @@
# Mopidy Docker image
Image for running [Mopidy](https://www.mopidy.com/) in Docker.
Image for running [Mopidy](https://www.mopidy.com/) in Docker.
Uses Pulseaudio for audio output.
## Contents
### Frontend extensions
* [Iris](https://github.com/jaedb/Iris)
* [Mopidy Musicbox Webclient](https://github.com/pimusicbox/mopidy-musicbox-webclient)
* [Mopidy Party](https://github.com/Lesterpig/mopidy-party)
* [Mopidy Simple webclient](https://github.com/xolox/mopidy-simple-webclient)
* [API explorer](https://github.com/dz0ny/mopidy-api-explorer)
* [Local images](https://github.com/tkem/mopidy-local-images)
### Backend extensions
* Spotify
* Spotify tunigo
* Soundcloud
* Scrobbler
* Tunein
* Local SQLite
## How to use
```bash
@@ -46,6 +40,10 @@ To add Spotify, Last.FM etc. accounts, use the `/mopidy.conf` file. Example:
enabled = true
username =
password =
client_id =
client_secret =
# To authenticate go to:
# https://mopidy.com/ext/spotify/#authentication
[scrobbler]
enabled = true
@@ -65,14 +63,14 @@ enable = true
The complete default config can be found in the file [mopidy.conf](./mopidy.conf)
## 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`. 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.
In the example below, a package is installed with pip. 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
RUN python3 -m pip install <your-package>
USER mopidy
```