Sign inSign up

j33r/mopidy

By j33r

•Updated about 3 years ago

Image
0

2.3K

j33r/mopidy repository overview

⁠mopidy docker image

Drone (cloud) Docker Image Size (latest by date) MicroBadger Layers Docker Pulls DockerHub

A docker image for mopidy⁠ based on Alpine Linux⁠ and without root process⁠

⁠What is Mopidy :

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.

⁠How use this image :

⁠With Docker
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.

⁠With Docker Compose
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

⁠Volumes

/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...)

⁠Config

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.

⁠Environment variables

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

Logs are available by running docker logs mopidy

⁠License

This project is under the GNU Generic Public License v3⁠ to allow free use while ensuring it stays open.

Tag summary

Content type

Image

Digest

sha256:79cce9ef1…

Size

110.7 MB

Last updated

about 3 years ago

docker pull j33r/mopidy