Update ttrss-postgres with ttrss

This commit is contained in:
Andreas Zweili 2022-11-03 23:36:21 +01:00
parent 80ebe6fbb3
commit 38397de4ac

View File

@ -11,6 +11,7 @@ in
"${inputs.self}/modules/data-share" "${inputs.self}/modules/data-share"
"${inputs.self}/modules/postgresql" "${inputs.self}/modules/postgresql"
]; ];
age.secrets.ttrssEnv.file = "${inputs.self}/scrts/ttrss_env.age";
services.postgresql = { services.postgresql = {
ensureDatabases = [ "ttrssdb" ]; ensureDatabases = [ "ttrssdb" ];
@ -31,15 +32,16 @@ in
TTRSS_DB_NAME = "ttrssdb"; TTRSS_DB_NAME = "ttrssdb";
TTRSS_DB_PASS = "ttrss"; TTRSS_DB_PASS = "ttrss";
TTRSS_DB_HOST = "host.docker.internal"; TTRSS_DB_HOST = "host.docker.internal";
TTRSS_SELF_URL_PATH = "https://test.2li.ch"; TTRSS_SELF_URL_PATH = "https://${domain}";
}; };
# environmentFiles = ""; environmentFiles = [ config.age.secrets.ttrssEnv.path ];
ports = [ ports = [
"8080:80" "8080:80"
]; ];
volumes = [ volumes = [
"/home/andreas/ttrss/config:/config" "/var/lib/ttrss/config:/config"
]; ];
extraOptions = [ "--add-host=host.docker.internal:host-gateway" ];
}; };
}; };
} }