An even simpler way of routing a certain container through wireguard, without needing to create a docker network and bind it to wg manually:
https://github.com/pirate/wireguard-docs#example-client-cont...
https://github.com/pirate/wireguard-docs#example-client-cont...
imo the sidecar solution is hard to beat if you don't need the features that the separate network provides.