Files
homelab/containers/db.nix
T
Xavier Morel 78c3c3bf68
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
chore: add icons & descr for authentik
2026-06-01 15:04:20 +02:00

52 lines
1.0 KiB
Nix

{ ... }:
{
my-lxc.db = {
container = {
cores = 2;
memory = 2048;
disk = "16G";
swap = 512;
};
system = {
additionalPorts = [
9187
5432
];
importConfig = [
../config/db-postgres.nix
];
services.prometheus.exporters.postgres = {
enable = true;
listenAddress = "0.0.0.0";
port = 9187;
openFirewall = true;
runAsLocalSuperUser = true;
};
};
logging = {
enable = true;
metricsEnable = false;
prometheusPorts = {
postgres = 9187;
};
journalLoggers = {
postgresql = "";
postgresqlBackup = "";
};
};
private = true;
auth = true;
description = "Base de données PostgreSQL.";
icon = "https://wiki.postgresql.org/images/3/30/PostgreSQL_logo.3colors.120x120.png";
otherDomains = [
{
subdomain = "db";
port = 5432;
private = true;
auth = false;
raw_tcp = true;
}
];
};
}