packer-cn/teamcity-services.yml

16 lines
364 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-25 01:58:24 -04:00
environment:
- VPN_PASSWORD
entrypoint: "sh -c 'echo $$VPN_PASSWORD | openvpn --cd /vpn/ --config lab.ovpn --askpass /dev/stdin'"