mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
disabled postgres
This commit is contained in:
@@ -94,8 +94,8 @@ in
|
|||||||
description = "ZFS Snapshot Manager";
|
description = "ZFS Snapshot Manager";
|
||||||
requires = [ "zfs-import.target" ];
|
requires = [ "zfs-import.target" ];
|
||||||
after = [ "zfs-import.target" ];
|
after = [ "zfs-import.target" ];
|
||||||
|
path = [ pkgs.zfs ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Environment = "ZFS_BIN=${pkgs.zfs}/bin/zfs";
|
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${inputs.system_tools.packages.x86_64-linux.default}/bin/snapshot_manager --config-file='${./snapshot_config.toml}'";
|
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 = {
|
# virtualisation.oci-containers.containers = {
|
||||||
postgres = {
|
# postgres = {
|
||||||
image = "postgres:16";
|
# image = "postgres:16";
|
||||||
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";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user