moved qbitvpn env file to sops

This commit is contained in:
Richie Cahill
2024-06-21 22:09:30 -04:00
parent 9ba0580b04
commit 66727c8786
2 changed files with 19 additions and 8 deletions

View File

@ -1,7 +1,9 @@
{ config, ... }:
{
virtualisation.oci-containers.containers = {
qbit = {
image = "ghcr.io/linuxserver/qbittorrent";
user = "600:600";
ports = [
"6881:6881"
"6881:6881/udp"
@ -13,7 +15,7 @@
"/zfs/torrenting/qbit/:/data"
];
environment = {
PUID = "998";
PUID = "600";
PGID = "100";
TZ = "America/New_York";
WEBUI_PORT = "8082";
@ -22,6 +24,7 @@
};
qbitvpn = {
image = "binhex/arch-qbittorrentvpn";
user = "600:600";
ports = [
"6882:6881"
"6882:6881/udp"
@ -35,7 +38,7 @@
];
environment = {
WEBUI_PORT = "8081";
PUID = "998";
PUID = "600";
PGID = "100";
VPN_ENABLED = "yes";
VPN_CLIENT = "openvpn";
@ -48,13 +51,14 @@
DELUGE_DAEMON_LOG_LEVEL = "debug";
DELUGE_WEB_LOG_LEVEL = "debug";
};
environmentFiles = [ "/zfs/media/docker/qbitvpn.env" ];
environmentFiles = [ config.sops.secrets."docker/haproxy_cert".path ];
autoStart = true;
};
prowlarr = {
image = "ghcr.io/linuxserver/prowlarr";
user = "600:600";
environment = {
PUID = "998";
PUID = "600";
PGID = "100";
TZ = "America/New_York";
};
@ -63,8 +67,9 @@
};
radarr = {
image = "ghcr.io/linuxserver/radarr";
user = "600:600";
environment = {
PUID = "998";
PUID = "600";
PGID = "100";
TZ = "America/New_York";
};
@ -77,8 +82,9 @@
};
sonarr = {
image = "ghcr.io/linuxserver/sonarr";
user = "600:600";
environment = {
PUID = "998";
PUID = "600";
PGID = "100";
TZ = "America/New_York";
};
@ -90,4 +96,8 @@
autoStart = true;
};
};
sops = {
defaultSopsFile = ../secrets.yaml;
secrets."docker/qbit_vpn".owner = "docker-service";
};
}