Giter Club home page Giter Club logo

docker-minidlna's Introduction

DO NOT USE THIS REPOSITORY ANYMORE

We stopped maintaining this repository anymore.

Use mirakc/timeshift-gerbera instead.

docker-minidlna

Multi-Arch MiniDLNA (ReadyMedia) Docker images based on Alpine, dedicated for mirakc/timeshift-fs

How to use

x-environment: &default-environment
  TZ: Asia/Tokyo

services:
  mirakc:
    ...
    volumes:
      - /path/to/config.yml:/etc/mirakc/config.yml:ro
      - /path/to/timeshift:/var/lib/mirakc/timeshift
    ...

  mirakc-timeshift-fs:
    container_name: mirakc-timeshift-fs
    image: mirakc/timeshift-fs
    init: true
    restart: unless-stopped
    cap_add:
      - SYS_ADMIN
    # In addition, you might have to run with no apparmor security profile
    # in order to avoid "fusermount3: mount failed: Permission denied".
    #security_opt:
    #  - apparmor:unconfined
    devices:
      - /dev/fuse
    volumes:
      # Use the same config.yml
      - /path/to/config.yml:/etc/mirakc/config.yml:ro
      # Timeshift files
      - /path/to/timeshift:/var/lib/mirakc/timeshift
      # Mount point
      - type: bind
        source: /path/to/timeshift-fs
        target: /mnt
        bind:
          propagation: rshared
    environment:
      <<: *default-environment
      RUST_LOG: info

  dlna:
    container_name: dlna
    depends_on:
      - mirakc-timeshift-fs
    image: mirakc/minidlna
    init: true
    restart: unless-stopped
    network_mode: host
    volumes:
      - /path/to/timeshift-fs:/mnt:ro
      - minidlna-cache:/var/cache/minidlna
    environment:
      <<: *default-environment

volumes:
  minidlna-cache:
    name: minidlna_cache
    driver: local

The dlna service starts listening on 8200/tcp by default. The dlna service also uses 1900/udp for SSDP multicast.

How to change /etc/minidlna.conf

First, extract /etc/minidlna.conf from the image:

docker run --rm --entrypoint=cat mirakc/minidlna /etc/minidlna.conf >minidlna.conf

Change values, and then run with the -v $(pwd)/minidlna.conf:/etc/minidlna.conf option:

docker run --rm -v $(pwd)/minidlna.conf:/etc/minidlna.conf mirakc/minidlna

docker-minidlna's People

Contributors

masnagam avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

docker-minidlna's Issues

Continue to consume CPU even after Kodi terminates

top when this issue occurs:

Mem: 926884K used, 74200K free, 844K shrd, 7624K buff, 562616K cached
CPU:   9% usr  54% sys   0% nic  32% idle   0% io   0% irq   2% sirq
Load average: 3.43 2.91 1.93 4/417 8166
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
 7848     8 root     R    57132   6%   2  25% /usr/local/sbin/minidlnad -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid -S
 7847     8 root     R    57132   6%   3  25% /usr/local/sbin/minidlnad -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid -S
    8     1 root     S    57132   6%   2   0% /usr/local/sbin/minidlnad -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid -S
 8153     0 root     S     1708   0%   1   0% sh
 8160  8153 root     R     1640   0%   0   0% top
    1     0 root     S     1632   0%   1   0% {run-minidlna} /bin/sh -eu /run-minidlna
 7996     1 root     S     1632   0%   1   0% sleep 300

top after several minutes (maybe, the end of the record reached):

Mem: 935880K used, 65204K free, 860K shrd, 8004K buff, 572696K cached
CPU:   9% usr   9% sys   0% nic  80% idle   0% io   0% irq   0% sirq
Load average: 0.92 1.63 1.69 2/421 8414
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
    8     1 root     S    57132   6%   1   0% /usr/local/sbin/minidlnad -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid -S
 8401     0 root     S     1708   0%   0   0% sh
 8408  8401 root     R     1644   0%   1   0% top
    1     0 root     S     1632   0%   2   0% {run-minidlna} /bin/sh -eu /run-minidlna
 8394     1 root     S     1632   0%   2   0% sleep 300

docker logs that might be related to this issue:

upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1913: warn:  not found, responding ERROR 404
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1913: warn:  not found, responding ERROR 404
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnphttp.c:1959: info: Serving DetailID: 1643 [/mnt/nhk/607CF230.ニュース[字].m2ts]
upnpsoap.c:127: warn: UpdateObject Returning UPnPError 402: Invalid Args

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.