Hass.io on Ubuntu server & NodeRED integration

Hi,
I follow instructions on https://github.com/home-assistant/hassio-installer and install Hass.io using Docker on Ubuntu 18.04 server. It works, I was able to register account and launch it. I followed with add-ons installation, but now I am not able to successfully configure Node RED add-on.

When I click on NodeRED icon in left panel, I see just blank page with spinner on right side, and after quite long time I get 502 error. After some investigations I found that problem is in ufw firewal on host system (tons of “…UFW BLOCK IN=hassio…” messages in log). If I enabled target port with "ufw allow " and “ufw reload”, it start working.

The problem is that NodeRED “” isn’t standard 1880, but some randomly chosed one (don’t remember now, but it was some high number like 46123). I expect that it is dynamically assigned value which will change over time (after each NodeRED container restart) and I cannot update ufw everytime it change its value.

Is there any viable solution of this problem please? I suppose that it have something to do with HA ingress functionality (since I can’t see any open ports on running containers, it must be managed on some other place)

Thanks!