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
|
2017-05-10 15:14:51 +00:00
|
|
|
exec docker run -v ovpn-data-example:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
|
2014-12-16 00:01:07 +00:00
|
|
|
end script
|