qbit is host networked #171

Merged
ahuston-0 merged 2 commits from feature/qbit into main 2026-01-08 16:34:11 -05:00
2 changed files with 15 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ let
qbit_path = "${torr_path}/qbit"; qbit_path = "${torr_path}/qbit";
qbitvpn_path = "${torr_path}/qbitvpn"; qbitvpn_path = "${torr_path}/qbitvpn";
qbitperm_path = "${torr_path}/qbitperm"; qbitperm_path = "${torr_path}/qbitperm";
data_path = "${torr_path}/data";
in in
{ {
@@ -30,14 +29,18 @@ in
}; };
volumes = [ volumes = [
"${qbit_path}/config:/config" # move from docker/qbit to qbit_path "${qbit_path}/config:/config" # move from docker/qbit to qbit_path
"${data_path}/data/:/data" "${torr_path}/data/:/data"
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
]; ];
networks = [ "host" ];
ports = [ ports = [
"8082:8082" "8082:8082"
"29432:29432" "29432:29432"
"29432:29432/udp" "29432:29432/udp"
]; ];
extraOptions = [
"--dns=9.9.9.9"
];
}; };
qbitVPN = qbitBase // { qbitVPN = qbitBase // {
# webui port is 8081, torr port is 39274 # webui port is 8081, torr port is 39274
@@ -50,7 +53,7 @@ in
dependsOn = [ "gluetun-qbit" ]; dependsOn = [ "gluetun-qbit" ];
volumes = [ volumes = [
"${qbitvpn_path}/config:/config" "${qbitvpn_path}/config:/config"
"${data_path}/data:/data" "${torr_path}/data:/data"
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
]; ];
}; };
@@ -65,7 +68,7 @@ in
dependsOn = [ "gluetun-qbit" ]; dependsOn = [ "gluetun-qbit" ];
volumes = [ volumes = [
"${qbitperm_path}/config:/config" "${qbitperm_path}/config:/config"
"${data_path}/data:/data" "${torr_path}/data:/data"
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
]; ];
}; };

View File

@@ -45,6 +45,14 @@
8686 8686
8787 8787
5055 5055
# torr
29432
];
allowedUDPPorts = [
# torr
29432
]; ];
}; };