Syco54645 - I don’t know why others are being so stubborn. I’m also running in Docker - with a reverse proxy redirecting a duckdns address to my HA instance. Since letsencrypt is already listening on port 80, every time I try and look at http://my_ip_address:80/api/pi/lights, it redirects to the nginx web interface. So I also need to do some port trickery to get Alexa to see my emulated hue. You are not alone!!!
I’ve tried changing port mappings in my docker-compose without success. But Alexa is looking for port 80 outside of docker so as soon as it hits the IP, it redirects to nginx. I need to find a way to shift (or shut off) port 80 on nginx and let the HA container grab those incoming requests. If I can accomplish that, I think I might be able to conquer this.
All that said, if you aren’t using
network_mode: host, could you do something like the following: