Added devices mount for tun on vpn service

VPN service will fail to start up in an LXC containers' docker instance complaining about permissions / access to the devices' TUN, either there is no TUN, or it can't modify it.
Adding this line allows the tun of the host Proxmox system to be mounted into the docker container once it's been mounted to the LXC.
Discussion that inspired this change: https://github.com/qdm12/gluetun/discussions/1482
This commit is contained in:
Antonio De Almeida 2024-08-24 14:47:09 +02:00 committed by GitHub
parent d45b6401b2
commit 6e995da949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,12 @@ services:
networks:
- mynetwork
# # Uncomment below when using VPN in an LXC container
# # Make sure to mount /dev/net/tun and /dev/net from underlaying host into your LXC.
# devices:
# - /dev/net/tun:/dev/net/tun
# Uncomment/enable below ports if VPN is used/enabled
# ports:
# # qbittorrent ports