nixos-configs/devices/nos/modules/arion/resume/compose.nix
matt1432 f277c78ac1
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename nas to nos
2024-03-01 18:20:32 -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";
};
};
};
}