VPN tunnel for Jdownloader?

I have a Raspberry PI 3 B+ with DietPi and I’m just starting with Docker.

So far I’ve got some containers running successfully, among them are:
/starze/arm32v7-openvpn-client
/jaymoulin/jdownloader/

I would like to use the VPN connection from the openvpn-client for the Jdownloader container.
I’ve read I can do this with --net container:openvpn-client

If the above is possible with starzes container, I still have some questions:
ovpn-client

  • when I start the container, is a VPN connection automatically active with the client.ovpn file in my config folder?
  • what is the command to store username and password in the container (using ProtonVPN)?

jdownloader

  • what is the command to disconnect/go offline if no VPN connection is established?