Please excuse me if this is a bit of a ramble, i'm not sure what I'm actually looking for here...
Recently, I've started creating IoT devices that sit on the local network. I can control these with google home via IFTTT and webhooks.
The IFTTT service creates a webhook. I'm using unique ports for each device, e.g.
for IoT device 1: mywebhooks.duckdns.org:1001/command/
for IoT device 2: mywebhooks.duckdns.org:1002/command/
Then on my router, forward the port to the device. So each IoT device uses a different port, e.g:
WAN port 1001 ->> local IoT device 1: 192.168.1.101
WAN port 1002 ->> local IoT device 2: 192.168.1.102
etc
However, this seems like it could be simplified if there was a docker that could route data to the correct local IP address directly, so:
for IoT device 1: IFTTT sends webhook: mywebhooks.duckdns.org:dockerport/DEVICE_1/command/
for IoT device 1: IFTTT sends webhook: mywebhooks.duckdns.org:dockerport/DEVICE_2/command/
then the docker works out that "DEVICE_1" is 192.168.1.101 and forwards the data to the IoT device, and viceversa with the response.
Is there such a docker app? What do you use to do this? How do you do it?
Hope that makes sense :-/