You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to get this working using volumes not folders and I am a little worried that I need to double mount some data in the openvpn-ui container, which are also mounted in the openvpn-server container.
Here is the part of my deployment script that handles creating the containers:
#Server
docker run -it -d --name=openvpn-server \
--cap-add=NET_ADMIN \
--restart always \
-p "$ExposeServerPort":1194/"$ExposeServerProtocol" \
-e TRUST_SUB="$TrustedSubnet" \
-e GUEST_SUB="$GuestSubnet" \
-e HOME_SUB="$HomeSubnet" \
-v openvpn-etc-openvpn:/etc/openvpn \
-v openvpn-pki:/etc/openvpn/pki \
-v openvpn-log:/var/log/openvpn \
--privileged d3vilh/openvpn-server:latest
#UI
docker run -it -d --name=openvpn-ui \
-p "$ExposeUiPort":8080/tcp \
-e OPENVPN_ADMIN_USERNAME="$DefaultAdminUsername" \
-e OPENVPN_ADMIN_PASSWORD="$DefaultAdminPassword" \
-v openvpn-etc-openvpn:/etc/openvpn \
**-v openvpn-pki:/etc/openvpn/pki \
-v openvpn-pki:/usr/share/easy-rsa/pki \
-v openvpn-log:/var/log/openvpn \
-v openvpn-log:/etc/openvpn/log \**
-v openvpn-db:/opt/openvpn-ui/db \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart always \
--privileged d3vilh/openvpn-ui:latest
If I don't create the containers with this double mounting then things break.
Does anyone have any other experience with this? Am I mounting volumes at the wrong path depth or something? ( though i've tried several and it is complicated by the requirement for pki to be a subfolder in /etc/openvpn as well as eslewhere...)
Thanks
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to get this working using volumes not folders and I am a little worried that I need to double mount some data in the openvpn-ui container, which are also mounted in the openvpn-server container.
If I don't create the containers with this double mounting then things break.
Does anyone have any other experience with this? Am I mounting volumes at the wrong path depth or something? ( though i've tried several and it is complicated by the requirement for pki to be a subfolder in /etc/openvpn as well as eslewhere...)
Thanks
The text was updated successfully, but these errors were encountered: