nixos-configs/devices/nas/modules/arion/resume/compose.nix
matt1432 4a6c1a663b
All checks were successful
Discord / discord commits (push) Has been skipped
feat(arion): migrate resume builder
2024-02-28 13:17:20 -05:00

51 lines
1 KiB
Nix

{config, ...}: let
inherit (config.sops) secrets;
inherit (config.arion) rwDataDir;
rwPath = rwDataDir + "/resume";
in {
arion.projects."resume" = {
"postgres" = {
image = ./images/postgres.nix;
restart = "always";
ports = ["5432:5432"];
volumes = [
"${rwPath}/db:/var/lib/postgresql/data"
];
env_file = [secrets.resume.path];
};
"server" = {
image = ./images/resume-server.nix;
restart = "always";
ports = ["3100:3100"];
depends_on = ["postgres"];
env_file = [secrets.resume.path];
environment = {
PUBLIC_URL = "https://resume.nelim.org";
PUBLIC_SERVER_URL = "https://resauth.nelim.org";
};
};
"client" = {
image = ./images/resume-client.nix;
restart = "always";
ports = ["3060:3000"];
depends_on = ["server"];
environment = {
PUBLIC_URL = "https://resume.nelim.org";
PUBLIC_SERVER_URL = "https://resauth.nelim.org";
};
};
};
}