Node-Red Add-on DNS Resolution

I have a msg.payload.url that is pointing to an html endpoint on the HA host. It only works when I use the IP address and fails when I use the hostname. I read elsewhere that adding network_mode: "host" to docker-compose.yaml file solved it for someone else but I do not believe there is a docker compose file when running as an addon for HA or is there?