I am trying to create several different docker-compose apps that utilize the same express VPN connection. Ideally what I would like to do is create a docker network called vpn, create a container called expressvpn that connects to a VPN and allows any container on the vpn network to connect to the VPN. I know I can create a docker container with a container network stack by specifying --net container:expressvpn. The problem with this approach is that any port I would like accessible by my local network needs to be forwarded in the expressvpn container. I also can't seem to use this approach with docker-compose.
So my question is: is there any such way to create a VPN network? Would it be possible to do this with a network plugin?