jeffreyswiggins

Qbit-VPN

Jun 24th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #
  2. # OpenVPN - OpenVPN Client container
  3. #
  4. vpn:
  5. devices:
  6. - /dev/net/tun
  7. restart: unless-stopped
  8. container_name: vpn
  9. #open any ports for containers which will use this vpn network
  10. ports:
  11. - 7881:6881
  12. - 9991:8080
  13. dns:
  14. - 1.1.1.1
  15. image: dperson/openvpn-client
  16. labels:
  17. - autoheal=true
  18. security_opt:
  19. - label:disable
  20. cap_add:
  21. - NET_ADMIN
  22. stdin_open: true
  23. tty: true
  24. volumes:
  25. - ${USERDIR}/openvpn/vpn/:/vpn
  26. command: -f ""
  27.  
  28. #
  29. # Qbittorrent - for VPN Encrypted downloads
  30. # Requires the OpenVPN container
  31. #
  32. qbittorrent:
  33. image: linuxserver/qbittorrent
  34. container_name: qbittorrent
  35. environment:
  36. - PUID=${PUID}
  37. - PGID=${PGID}
  38. - TZ=${TZ}
  39. - UMASK=0000
  40. - WEBUI_PORT=8080
  41. volumes:
  42. - ${USERDIR}/qbittorrent/data:/data
  43. - ${USERDIR}/qbittorrent/config:/config
  44. - ${MEDIA}/qbittorrent:/downloads
  45. network_mode: "service:vpn"
  46. labels:
  47. - autoheal=true
  48. restart: always
Add Comment
Please, Sign In to add comment