YAML UDP issue

I am attempting to install a custom app via YAML and am hitting a problem.

Here is the correct YAML:

###

services:
universalmediaserver:
container_name: ums
image: universalmediaserver/ums-ubuntu:latest
network_mode: host
ports:

  • ‘1900:1900/tcp’
  • ‘1900:1900/udp’
  • ‘5001:5001’
  • ‘9001:9001’
  • ‘1044:1044’
    restart: always
    volumes:
  • ./profile:/root/.config/UMS
  • /mnt/pathtomedia:/media:ro
    version: ‘3.7’

###

The issue I am having is DNLA/UPnP functionality is not working. I am convinced the docker networking is not opening the port, likely due to the Truenas YAML text validation. Even though I entered the YAML properly quoted as above, the UPnP port 1900 has lost it quotes:

I have tried both single quotes and double quotes to no avail.

I have also tried long form for those ports, and that also failed. I am not sure if it directly related, or a symptom of another failure.

###

ports:

  • protocol: udp
    target : 1900

    published: 1900

  • protocol: tcp

    target: 1900

    published: 1900

Does anyone have a work around or is bug ready?

For dlna to work (at least for the official apps) you have to use host networking

I am not expert in the contextual shades of the YAML here, but I do believe I have declared host networking in line 5 of my YAML above with

network_mode: host

Yes, my bad, didn’t have my glasses on and simply overlooked that line

This Is a reason why, at the time more than a year ago, i totally discarded builtin function and i’m still using Portainer.
Try you stack in Portainer (sintax Is correct IMHO , i use double quote) and see if something change