Check out gluetun, I use this on my server to ensure that all traffic for certain Docker containers goes through a Wireguard VPN.
Kind of?
I'm not sure if this satisfies your use case, and I haven't personally used this functionality.
Check out gluetun, I use this on my server to ensure that all traffic for certain Docker containers goes through a Wireguard VPN.