jee-r / docker-mopidy

Mopidy docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mopidy docker image

Docker Image Size (latest by date) GitHub Workflow Status (branch) Docker Pulls DockerHub ghcr.io

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.

About

Mopidy docker image

License:GNU General Public License v3.0


Languages

Language:Dockerfile 82.9%Language:Shell 17.1%