WireGuard with Docker Compose
Some people prefer Docker on the VPS. Typical flow:
- Generate server + client configs in the browser tool (keys stay local).
- Copy the server file to the VPS (for example
/etc/wireguard/wg0.confor a bind mount). - Run a WireGuard container that uses host networking or the proper capabilities (
NET_ADMIN,/dev/net/tun).
Exact images vary (linuxserver/wireguard and others). Always match the config interface name and UDP port with your firewall.
If you do not have a VPS yet, start with a cheap 1 GB instance.