42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# https://github.com/nickkjolsing/dockerMullvadVPN
|
|
|
|
name: torrent
|
|
|
|
services:
|
|
openvpn-client:
|
|
image: ghcr.io/wfg/openvpn-client # Image on Docker. Shoutout to ghcr.io
|
|
container_name: openvpn-client
|
|
cap_add:
|
|
- NET_ADMIN # Needs to be here
|
|
environment:
|
|
- KILL_SWITCH=on # Turns off internet access if the VPN connection drops
|
|
- SUBNETS=192.168.0.0/24,192.168.1.0/24
|
|
devices:
|
|
- /dev/net/tun
|
|
volumes:
|
|
- /home/jellyfin/mullvad_config_linux_nl_ams:/data/vpn
|
|
ports:
|
|
- 8082:8082
|
|
- 6881:6881
|
|
- 6881:6881/udp
|
|
restart: unless-stopped
|
|
|
|
qbittorrent:
|
|
image: lscr.io/linuxserver/qbittorrent:latest
|
|
container_name: qbittorrent
|
|
environment:
|
|
- PUID=1003
|
|
- PGID=1003
|
|
- TZ=Europe/Amsterdam
|
|
- WEBUI_PORT=8082
|
|
- TORRENTING_PORT=6881
|
|
volumes:
|
|
- /home/jellyfin/qbitorrent/appdata:/config
|
|
- /home/jellyfin/qbitorrent/downloads:/downloads #optional
|
|
- /home/jellyfin/jellyfin/media:/media
|
|
# ports:
|
|
# - 8082:8082
|
|
# - 6881:6881
|
|
# - 6881:6881/udp
|
|
network_mode: container:openvpn-client # This uses the port setting of the openvpn
|
|
restart: unless-stopped
|