enabled postgres

This commit is contained in:
2024-11-21 20:24:11 -05:00
parent 9430bc96f8
commit a318ee74fe

View File

@@ -13,20 +13,20 @@ in
}; };
}; };
# virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
# postgres = { postgres = {
# image = "postgres:16"; image = "postgres:17";
# ports = [ "5432:5432" ]; ports = [ "5432:5432" ];
# volumes = [ "${vars.media_database}/postgres:/var/lib/postgresql/data" ]; volumes = [ "${vars.media_database}/postgres:/var/lib/postgresql/data" ];
# environment = { environment = {
# POSTGRES_USER = "admin"; POSTGRES_USER = "admin";
# POSTGRES_DB = "archive"; POSTGRES_DB = "archive";
# POSTGRES_INITDB_ARGS = "--auth-host=scram-sha-256"; POSTGRES_INITDB_ARGS = "--auth-host=scram-sha-256";
# }; };
# environmentFiles = [/root/secrets/docker/postgres]; environmentFiles = [/root/secrets/docker/postgres];
# autoStart = true; autoStart = true;
# user = "postgres:postgres"; user = "postgres:postgres";
# }; };
# }; };
} }