Services/Paperless: Update to v2.17.1
This commit is contained in:
@ -3,102 +3,106 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
virtualisation.oci-containers.containers.paperless-redis = {
|
paperlessVersion = "2.17.1";
|
||||||
image = "redis:7";
|
in {
|
||||||
autoStart = true;
|
virtualisation.oci-containers.containers = {
|
||||||
|
paperless-redis = {
|
||||||
|
image = "redis:7";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = {
|
||||||
# Uses DockerHub by default
|
# Uses DockerHub by default
|
||||||
# registry = "";
|
# registry = "";
|
||||||
|
|
||||||
# DockerHub Credentials
|
# DockerHub Credentials
|
||||||
username = "christoph.urlacher@protonmail.com";
|
username = "christoph.urlacher@protonmail.com";
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"paperless-redis_data:/data"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
paperless-postgres = {
|
||||||
|
image = "postgres:15";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
ports = [];
|
login = {
|
||||||
|
# Uses DockerHub by default
|
||||||
|
# registry = "";
|
||||||
|
|
||||||
volumes = [
|
# DockerHub Credentials
|
||||||
"paperless-redis_data:/data"
|
username = "christoph.urlacher@protonmail.com";
|
||||||
];
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
||||||
|
};
|
||||||
|
|
||||||
environment = {};
|
dependsOn = [];
|
||||||
|
|
||||||
extraOptions = [
|
ports = [];
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.paperless-postgres = {
|
volumes = [
|
||||||
image = "postgres:15";
|
"paperless-postgres_data:/var/lib/postgresql/data"
|
||||||
autoStart = true;
|
];
|
||||||
|
|
||||||
login = {
|
environment = {
|
||||||
# Uses DockerHub by default
|
POSTGRES_DB = "paperless";
|
||||||
# registry = "";
|
POSTGRES_USER = "paperless";
|
||||||
|
POSTGRES_PASSWORD = "paperless";
|
||||||
|
};
|
||||||
|
|
||||||
# DockerHub Credentials
|
extraOptions = [
|
||||||
username = "christoph.urlacher@protonmail.com";
|
"--net=behind-nginx"
|
||||||
passwordFile = "${config.sops.secrets.docker-password.path}";
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
dependsOn = [];
|
paperless = {
|
||||||
|
image = "ghcr.io/paperless-ngx/paperless-ngx:${paperlessVersion}";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
ports = [];
|
dependsOn = [
|
||||||
|
"paperless-redis"
|
||||||
|
"paperless-postgres"
|
||||||
|
];
|
||||||
|
|
||||||
volumes = [
|
ports = [
|
||||||
"paperless-postgres_data:/var/lib/postgresql/data"
|
"8000:8000"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
volumes = [
|
||||||
POSTGRES_DB = "paperless";
|
"paperless_data:/usr/src/paperless/data"
|
||||||
POSTGRES_USER = "paperless";
|
"/media/paperless-media:/usr/src/paperless/media"
|
||||||
POSTGRES_PASSWORD = "paperless";
|
"/media/paperless-export:/usr/src/paperless/export"
|
||||||
|
"/media/paperless-consume:/usr/src/paperless/consume"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PAPERLESS_REDIS = "redis://paperless-redis:6379";
|
||||||
|
PAPERLESS_DBHOST = "paperless-postgres";
|
||||||
|
|
||||||
|
# PAPERLESS_ADMIN_USER = "root";
|
||||||
|
# PAPERLESS_ADMIN_PASSWORD = "admin";
|
||||||
|
|
||||||
|
PAPERLESS_URL = "https://*.chriphost.de";
|
||||||
|
# PAPERLESS_CSRF_TRUSTED_ORIGINS = "[https://paperless.local.chriphost.de,https://paperless.vps.chriphost.de]";
|
||||||
|
# PAPERLESS_ALLOWED_HOSTS = "[https://paperless.local.chriphost.de,https://paperless.vps.chriphost.de]";
|
||||||
|
# PAPERLESS_CORS_ALLOWED_HOSTS = "[https://paperless.local.chriphost.de,https://paperless.vps.chriphost.de]";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.paperless = {
|
|
||||||
image = "ghcr.io/paperless-ngx/paperless-ngx:latest";
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
dependsOn = [
|
|
||||||
"paperless-redis"
|
|
||||||
"paperless-postgres"
|
|
||||||
];
|
|
||||||
|
|
||||||
ports = [
|
|
||||||
"8000:8000"
|
|
||||||
];
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"paperless_data:/usr/src/paperless/data"
|
|
||||||
"/media/paperless-media:/usr/src/paperless/media"
|
|
||||||
"/media/paperless-export:/usr/src/paperless/export"
|
|
||||||
"/media/paperless-consume:/usr/src/paperless/consume"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
PAPERLESS_REDIS = "redis://paperless-redis:6379";
|
|
||||||
PAPERLESS_DBHOST = "paperless-postgres";
|
|
||||||
|
|
||||||
# PAPERLESS_ADMIN_USER = "root";
|
|
||||||
# PAPERLESS_ADMIN_PASSWORD = "admin";
|
|
||||||
|
|
||||||
PAPERLESS_URL = "https://*.chriphost.de";
|
|
||||||
# PAPERLESS_CSRF_TRUSTED_ORIGINS = "[https://paperless.local.chriphost.de,https://paperless.vps.chriphost.de]";
|
|
||||||
# PAPERLESS_ALLOWED_HOSTS = "[https://paperless.local.chriphost.de,https://paperless.vps.chriphost.de]";
|
|
||||||
# PAPERLESS_CORS_ALLOWED_HOSTS = "[https://paperless.local.chriphost.de,https://paperless.vps.chriphost.de]";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
"--net=behind-nginx"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user