# needs at least docker-compose 1.18.0 (1.10.0 for sysctls option and 1.18.0 for custom network name) version: "2.1" services: vpn-client: image: vpn-client:$VERSION_VPN_CLIENT build: "https://git.scimetis.net/yohan/docker-VPN-client.git" restart: always volumes: - ./keys:/etc/openvpn/client:Z - ./client.conf:/etc/openvpn/openvpn.conf:Z - ./post-up.sh:/root/post-up.sh:Z cap_add: - NET_ADMIN devices: - "/dev/net/tun:/dev/net/tun" dns: 80.67.169.12 network_mode: "host"