packer-cn/teamcity-services.yml

14 lines
327 B
YAML
Raw Normal View History

2017-12-12 05:33:16 -05:00
version: '2'
services:
vpn:
container_name: vpn
image: jetbrainsinfra/openvpn
volumes:
2018-04-24 15:11:33 -04:00
- ./test:/vpn:ro
2017-12-12 05:33:16 -05:00
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
dns: 10.0.0.1
2018-04-24 15:11:33 -04:00
entrypoint: "sh -c 'echo ${VPN_PASSWORD} | openvpn --cd /vpn/ --config lab.ovpn --askpass /dev/stdin'"