Publish UDP multicast to LAN


I am looking for a way to publish multicast UDP messages to the external local network to which my device is connected (through eth0).

I am running several containers, from which one is the UDP publisher.

Since I am running several containers, they are connected to the internal bridge network, and publishing to the multicast address does so in this internal LAN

16: eth0@if17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:11:00:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet brd scope global eth0
       valid_lft forever preferred_lft forever

I found a way around this by setting network_mode: "host" on the docker-compose.yml but I was wondering if there is a way to forward the UDP messages from my container through the HostOS to the LAN network, or to “mount” only the eth0 interface instead of giving the container full access to the host network interfaces.

Any thoughts on this? Thanks in advance!