mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
disabled postgres
This commit is contained in:
@@ -94,8 +94,8 @@ in
|
||||
description = "ZFS Snapshot Manager";
|
||||
requires = [ "zfs-import.target" ];
|
||||
after = [ "zfs-import.target" ];
|
||||
path = [ pkgs.zfs ];
|
||||
serviceConfig = {
|
||||
Environment = "ZFS_BIN=${pkgs.zfs}/bin/zfs";
|
||||
Type = "oneshot";
|
||||
ExecStart = "${inputs.system_tools.packages.x86_64-linux.default}/bin/snapshot_manager --config-file='${./snapshot_config.toml}'";
|
||||
};
|
||||
|
||||
@@ -13,20 +13,20 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
postgres = {
|
||||
image = "postgres:16";
|
||||
ports = [ "5432:5432" ];
|
||||
volumes = [ "${vars.media_database}/postgres:/var/lib/postgresql/data" ];
|
||||
environment = {
|
||||
POSTGRES_USER = "admin";
|
||||
POSTGRES_DB = "archive";
|
||||
POSTGRES_INITDB_ARGS = "--auth-host=scram-sha-256";
|
||||
};
|
||||
environmentFiles = [/root/secrets/docker/postgres];
|
||||
autoStart = true;
|
||||
user = "postgres:postgres";
|
||||
};
|
||||
};
|
||||
# virtualisation.oci-containers.containers = {
|
||||
# postgres = {
|
||||
# image = "postgres:16";
|
||||
# ports = [ "5432:5432" ];
|
||||
# volumes = [ "${vars.media_database}/postgres:/var/lib/postgresql/data" ];
|
||||
# environment = {
|
||||
# POSTGRES_USER = "admin";
|
||||
# POSTGRES_DB = "archive";
|
||||
# POSTGRES_INITDB_ARGS = "--auth-host=scram-sha-256";
|
||||
# };
|
||||
# environmentFiles = [/root/secrets/docker/postgres];
|
||||
# autoStart = true;
|
||||
# user = "postgres:postgres";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user