While container networks should remain static, I have had instances such as when I rebuild my machine where the container network IP’s have changed.
I have mapped the /var/run/docker.sock socket into my container. It would be great if Home Assistant was able to query either the docker socket, or DNS for network / container names so that they can be used for container based reverse proxies in the trusted proxies config section.
This way, even if the reverse proxy container IP is dynamic / changes its IP, the reference should still resolve.