gw17252009

2 clients on vpn + tailscale

Aug 4th, 2025
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4. wireguard:
  5. image: thrnz/wireguard-pia
  6. container_name: wireguard
  7. cap_add:
  8. - NET_ADMIN
  9. - SYS_MODULE
  10. sysctls:
  11. - net.ipv4.conf.all.src_valid_mark=1
  12. environment:
  13. - REGION=us_california
  14. - USER=piausername
  15. - PASS=piapassword
  16. - PORT_FORWARDING=1
  17. volumes:
  18. - ./pia-config:/pia
  19. restart: unless-stopped
  20.  
  21. transmission:
  22. image: linuxserver/transmission
  23. container_name: transmission
  24. network_mode: "service:wireguard"
  25. environment:
  26. - PUID=1000
  27. - PGID=1000
  28. - TZ=Etc/UTC
  29. - USER=transmission
  30. - PASS=securepassword
  31. volumes:
  32. - ./downloads:/downloads
  33. - ./watch:/watch
  34. - ./config/transmission:/config
  35. depends_on:
  36. - wireguard
  37.  
  38. transmission-ts:
  39. image: tailscale/tailscale
  40. container_name: ts-transmission
  41. hostname: ts-transmission
  42. network_mode: "service:transmission"
  43. cap_add:
  44. - NET_ADMIN
  45. environment:
  46. - TS_AUTHKEY=tskey-...
  47. volumes:
  48. - ./ts-state/transmission:/var/lib/tailscale
  49. - /dev/net/tun:/dev/net/tun
  50. command: tailscaled
  51. depends_on:
  52. - transmission
  53.  
  54. qbittorrent:
  55. image: linuxserver/qbittorrent
  56. container_name: qbittorrent
  57. network_mode: "service:wireguard"
  58. environment:
  59. - PUID=1000
  60. - PGID=1000
  61. - TZ=Etc/UTC
  62. - WEBUI_PORT=8080
  63. volumes:
  64. - ./downloads:/downloads
  65. - ./watch:/watch
  66. - ./config/qbittorrent:/config
  67. depends_on:
  68. - wireguard
  69.  
  70. qbittorrent-ts:
  71. image: tailscale/tailscale
  72. container_name: ts-qbittorrent
  73. hostname: ts-qbittorrent
  74. network_mode: "service:qbittorrent"
  75. cap_add:
  76. - NET_ADMIN
  77. environment:
  78. - TS_AUTHKEY=tskey-...
  79. volumes:
  80. - ./ts-state/qbittorrent:/var/lib/tailscale
  81. - /dev/net/tun:/dev/net/tun
  82. command: tailscaled
  83. depends_on:
  84. - qbittorrent
  85.  
Add Comment
Please, Sign In to add comment