2014-12-16 00:01:07 +00:00
|
|
|
# Copy to /etc/init/docker-openvpn.conf
|
|
|
|
description "Docker container for OpenVPN server"
|
|
|
|
start on filesystem and started docker
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
respawn
|
|
|
|
script
|
2016-09-03 23:08:49 +00:00
|
|
|
exec docker run -v ovpn-data:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
|
2014-12-16 00:01:07 +00:00
|
|
|
end script
|