This repository contains the configuration to run protonvpn with wireguard and even turn it into a proxy accessible on the host machine.
docker build -t protonvpn-wireguard .Note
I recommend that you create a folder and put your wg settings in it and then mount it along with the docker containe, after that you must pass two variables along with the docker command CONF and PORT, your protonvpn configuration for wireguard should not have the DNS attribute, if it does, remove it as it will give an error and docker will automatically resolve the DNS.
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxx
Address = xx.xx.x/x
DNS = xx.x.x.x <- remove or comment this
[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxx
AllowedIPs = x.x.x.x/x, ::/x
Endpoint = x.x.x.x.:xxxx
docker run -d -v $(pwd)/configs:/root/configs --cap-add=NET_ADMIN -e CONF=wg0 -e PORT=9001 -p 9001:9001 --name proton-proxy protonvpn-wireguardcurl -x http://localhost:9001 ifconfig.me