nixos-configs/devices/nos/modules/arion/freshrss/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

50 lines
1.1 KiB
Nix

{config, ...}: let
inherit (config.sops) secrets;
inherit (config.arion) rwDataDir;
rwPath = rwDataDir + "/freshrss";
in {
arion.projects."freshrss" = {
"freshrss" = {
image = ./images/freshrss.nix;
restart = "always";
ports = ["2800:80"];
volumes = [
"${rwPath}/data:/var/www/FreshRSS/data"
"${rwPath}/data-extensions:/var/www/FreshRSS/extensions"
];
env_file = [secrets.freshrss.path];
environment = {
TZ = "America/New_York";
CRON_MIN = "'3,33'";
};
};
"freshrss-db" = {
image = ./images/postgres.nix;
restart = "always";
volumes = [
"${rwPath}/db:/var/lib/postgresql/data"
];
env_file = [secrets.freshrss.path];
environment = {
POSTGRES_DB = "\${DB_BASE:-freshrss}";
POSTGRES_USER = "\${DB_USER:-freshrss}";
POSTGRES_PASSWORD = "\${DB_PASSWORD:-freshrss}";
};
};
"docker-hub-rss" = {
image = ./images/docker-hub-rss.nix;
restart = "always";
ports = ["3007:3000"];
};
};
}