moving docker secrets to sops

This commit is contained in:
Richie Cahill
2024-06-21 21:27:22 -04:00
parent 776ae1c811
commit ae21d96746
5 changed files with 75 additions and 7 deletions

View File

@ -21,7 +21,7 @@
POSTGRES_DB = "archive";
POSTGRES_INITDB_ARGS = "--auth-host=scram-sha-256";
};
environmentFiles = [ config.sops.secrets."postgres".path ];
environmentFiles = [ config.sops.secrets."docker/postgres".path ];
autoStart = true;
user = "postgres:postgres";
};
@ -29,6 +29,6 @@
sops = {
defaultSopsFile = ../secrets.yaml;
secrets."postgres".owner = "postgres";
secrets."docker/postgres".owner = "postgres";
};
}