My Gladys is running fine, but only on the localhost. Other Docker services are perfectly reachable on the LAN, but not Gladys. Also no other Docker is using that port, also tried other ports. Logs are fine.
If I use the ports in the config yaml and comment out network=host, it works on LAN.
Then I get this: LISTEN 0 4096 0.0.0.0:8001 0.0.0.0:* users:((« docker-proxy »,pid=1879103,fd=7)) LISTEN 0 4096 [::]:8001 [::]:* users:((« docker-proxy »,pid=1879109,fd=7))
The question remains. Is this a solid workaround and why doesn’t it work the other way?
I’m not using docker-compose for my personal setup, there is always some weird stuff like that, just using the raw docker run from the website.
If you don’t use network=host, you’ll have issues when using integrations that need to be on the network (e.g., Matter, Philips Hue, network scanning, etc.).
So it’s up to you, but it’s not a recommended setup
only supplying the ports in stead of using network=host gives a non-working environment indeed
I’ve investigated it further. It seems that because of the network=host the ports are not automatically accessible to LAN devices. This is due to stricter rules on Debian 13.
I could setup a Macvlan, reverse proxy, but instead I went for the easy solution and added the ports (8001 and 8089 in my case for Z2M) to UFW on top of the list. In my iptables everything from LAN is disabled by default.
sudo ufw insert 1 allow from <LAN IP>/24 to any port <port> proto tcp