SensorsIot / IOTstack

Docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.44k stars 304 forks source link

20220810 domoticz - old-menu branch - PR 2 of 3 #593

Closed Paraphraser closed 1 year ago

Paraphraser commented 2 years ago

A Discord thread starting at https://discord.com/channels/638610460567928832/638610461109256194/1005812386688680006 revealed that the Domoticz would not function properly on a clean install. The symptom was either a 400 or a 404 error, depending on the URL.

Three issues identified with existing service definition:

  1. Wrong image base. Should be "lscr.io/linuxserver/domoticz".
  2. Wrong image tag. Should be "latest".
  3. network_mode: bridge.

It has never been clear what network_mode: bridge is intended to do. It is the only container with this option. While it may once have been needed, its presence now appears to prevent the container from responding correctly on port 8083.

No IOTstack documentation exists for this container. A related PR adds basic documentation. This PR adds a stub pointing to master branch.

Signed-off-by: Phill Kelley 34226495+Paraphraser@users.noreply.github.com

Slyke commented 1 year ago

I think when the network mode is set to bridge, it creates its own NATed subnet, with the gateway leading to the LAN. This is probably why it didn't respond, since the port forwarding on the NAT was never setup.