README: Clarify volume naming convention
* Use a better default that works with systemd service out of the box. * Update upstart init script to follow convention.
This commit is contained in:
parent
861ed05c48
commit
f996bbaa8e
@ -18,9 +18,12 @@ a corresponding [Digital Ocean Community Tutorial](http://bit.ly/1AGUZkq).
|
||||
|
||||
## Quick Start
|
||||
|
||||
* Pick a name for the `$OVPN_DATA` data volume container, it will be created automatically.
|
||||
* Pick a name for the `$OVPN_DATA` data volume container. It's recommended to
|
||||
use the `ovpn-data-` prefix to operate seamlessly with the reference systemd
|
||||
service. Users are encourage to replace `example` with a descriptive name of
|
||||
their choosing.
|
||||
|
||||
OVPN_DATA="ovpn-data"
|
||||
OVPN_DATA="ovpn-data-example"
|
||||
|
||||
* Initialize the `$OVPN_DATA` container that will hold the configuration files and certificates
|
||||
|
||||
|
@ -4,5 +4,5 @@ start on filesystem and started docker
|
||||
stop on runlevel [!2345]
|
||||
respawn
|
||||
script
|
||||
exec docker run -v ovpn-data:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
|
||||
exec docker run -v ovpn-data-example:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
|
||||
end script
|
||||
|
Loading…
Reference in New Issue
Block a user