Network discovery

I’m running home assistant in docker with rancher. Rancher uses a managed network, this causes the container to have a virtual IP address. The lan is accessible(routed), but discovery will not work because the containers network device has a vpn-ip.

Is there a way to specify the discovery network?