0c603bb35a32931eaf094e6d1a472618e5c24a04
Mopidy Docker image
Image for running Mopidy in Docker. Uses Pulseaudio for audio output.
Contents
Frontend extensions
Backend extensions
- Spotify
- Spotify tunigo
- Youtube
- Soundcloud
- Scrobbler
- Tunein
- Local SQLite
How to use
docker run \
--name mopidy \
-e PULSE_SERVER=tcp:127.0.0.1:4713 \ # Pulseaudio server
-v $PWD/media:/media:ro \ # Media files
-v $PWD/data:/var/lib/mopidy \ # Mopidy data and cache
-v $PWD/mopidy.conf:/mopidyconf \ # Override config (for accounts)
-p 6600:6600 \ # Port for MPD
-p 6680:6680 \ # Port for the webinterface
-p 6681:6681 \ # (Optional) Port for Iris pusher service
whhoesj/mopidy
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.
Accounts
To add Spotify, Last.FM etc. accounts, use the /mopidy.conf file. Example:
[spotify]
enabled = true
username =
password =
[scrobbler]
enabled = true
username =
password =
[soundcloud]
enabled = true
auth_token =
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.
Description
Languages
Dockerfile
48.3%
Makefile
35.5%
Shell
16.2%