DNS issues wireguard

I currently have a stack that includes the wireguard container. Just to note when I launch this stack manually via compose I seemingly do not have DNS issues. But when the host reboots and the stack restarts automatically at boot the wireguard container’s resolv.conf defaults to my lan dns server and not the specified DNS in the wg0.conf. This results in DNS leaks if my host happens to reboot. Ive tried some fenagling with NetworkManager.conf on host but no luck so far. Any ideas/suggestions?

EDIT:
Was able to the DNS using the correct servers by creating my own resolv.conf and adding it to the volume section of the container.

    - /home/user/wireguard-stack/resolv.conf:/etc/resolv.conf

Unsure if this is hacky and a better method can be used. Would love to hear any thoughts
Thanks