A docker image for mopidy based on Alpine Linux and without root process
From mopidy.com:
Mopidy is an extensible music server written in Python.
Mopidy plays music from local disk, Spotify, SoundCloud, TuneIn, and more. You can edit the playlist from any phone, tablet, or computer using a variety of MPD and web clients.
- Source code : https://github.com/mopidy/mopidy
- Documentation : https://docs.mopidy.com/en/latest/
- Official Website : https://mopidy.com
docker run \
--detach \
--interactive \
--name mopidy \
--user $(id -u):$(id -g) \
#--volume ./config:/config \
--volume ./media:/media \
--volume /etc/localtime:/etc/localtime:ro \
--env TZ=Europe/Paris \
--env HOME=/config \
--publish 6600:6600 \
--publish 6680:6680 \
--publish 5555:5555/udp \
j33r/mopidy:latest
Note: --user $(id -u):$(id -g)
should work out of the box on linux systems. If your docker host run on windows or if you want specify an other user id and group id just replace with the appropriates values.
version 3
services:
mopidy:
image: j33r/mopidy:latest
container_name: mopidy
restart: unless-stopped
user: "1000:1000"
volumes:
# - ./config:/config
# - ./media:/media
- /etc/localtime:/etc/localtime:ro
environments:
- HOME=/config
- TZ=Europe/Paris
ports:
- 6600:6600
- 6680:6680
- 5555:5555/udp
/config
: If you mount this directory you must provide a mopidy.conf
configuration file in it
/media
: Directory where your media files are stored (mp3,flac,ogg...)
By default image is running mopidy with this default config.
When container start if /config
directory is mounted and /config/mopidy.conf
don't exist entrypoint.sh
script will copy default config and create neccesary directories in it.
To change the timezone of the container set the TZ
environment variable. The full list of available options can be found on Wikipedia.
You can also set the HOME
environment variable this is usefull to get in the right directory when you attach a shell in your docker container.
Logs are available by running docker logs mopidy
This project is under the GNU Generic Public License v3 to allow free use while ensuring it stays open.