This commit is contained in:
Michael Kuzmin 2018-04-25 08:58:24 +03:00
parent c2a8d0c91e
commit 74f89f484d
1 changed files with 3 additions and 1 deletions

View File

@ -10,4 +10,6 @@ services:
devices:
- /dev/net/tun:/dev/net/tun
dns: 10.0.0.1
entrypoint: "sh -c 'echo ${VPN_PASSWORD} | openvpn --cd /vpn/ --config lab.ovpn --askpass /dev/stdin'"
environment:
- VPN_PASSWORD
entrypoint: "sh -c 'echo $$VPN_PASSWORD | openvpn --cd /vpn/ --config lab.ovpn --askpass /dev/stdin'"