Skip to content

dxma/docker-lms-upnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Docker Logitech Media Center uPnP Bridge

docker image for philippe44/LMS-uPnP

Background

This is a well-known logitech media server extension, which bridges DLNA compatible music client as LMS player. Usually you will get it installed together with LMS, from its plugins repository. This option requires you to run LMS docker image in host network mode.

In my case, I don't want to run the bridge inside LMS container, simply because:

  1. I don't want to expose entire LMS service onto my host network.
  2. It is hard to check the bridge running state, well it is possible via LMS but requires a few clicks.
  3. For small customizations.

Thus I decided to build this tiny docker image dedicated for running the bridge only.

Configuration

Way to run and configure the docker service, via docker compose. Below is my compose content:

---
version: "2.1"
services:
  lms-upnp-bridge:
    image: dxma/lms-upnp:2.2.3
    container_name: lms-upnp
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - /Application/lms-upnp:/config
    restart: unless-stopped

    network_mode: host

Make sure the mount folder on host has correct ownership: UID=1000, GID=100. First create the configuration file /config/config.xml:

docker run -it --rm -e TZ=Asia/Shanghai --network=host -v /Application/lms-upnp:/config dxma/lms-upnp:2.2.3 squeeze2upnp-linux-x86_64 -i config.xml

Tweak the settings inside, start the container with default command and you are good to go.

Debug

First check the container log, everything will be printed there. If that is not enough, customize /config/config.xml yourself and restart the container. A common helpful approach is change logging level from info (default) into debug.

Bugs

The bridge will bind on 2 ports:

  1. 49152: upnp socket starting port, a new web service will be made for each running client following this port
  2. 1900: this is not explicitly mentioned, it is the dnla server port

While deploying the bridge first time, I got strange port bind error due to 1900 port occupation. The jellyfin service running on my NAS box also binds to port 1900. You have to turn off the other dlna server in this case and free up 1900.

About

docker image for philippe44/LMS-uPnP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published