A minimal OpenVpn docker image to be run with an already existing configuration
A minimal OpenVpn docker image to be run with an already existing configuration
Place your configuraton /etc/openvpn
directory in a local config
directory. This configuration directory should contain openvpn.conf
for your server/client configuration file
docker build -t openvpn .
VPN_CONFIG="config"
docker run -v $VPN_CONFIG:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN bertrandmartel/docker-openvpn
docker-compose up
export USER_PATH=/home/bobby
envsubst < stackfile-template.yml > stackfile.yml
stackfile.yml
file before creating/updating the stack :
# create the stack :
docker-cloud stack create --name openvpn -f stackfile.yml
# or update :
docker-cloud stack update -f stackfile.yml <uuid>
# start the stack :
docker-cloud stack start <uuid>
# or redeploy :
docker-cloud stack redeploy <uuid>
docker exec -it openvpn bash