Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volumes not Folder please #112

Open
gregewing opened this issue Nov 13, 2024 · 0 comments
Open

Volumes not Folder please #112

gregewing opened this issue Nov 13, 2024 · 0 comments

Comments

@gregewing
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant