feat(arion): migrate freshrss
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-28 12:31:40 -05:00
parent 88d179c962
commit 6603e38200
8 changed files with 80 additions and 2 deletions

View file

@ -90,10 +90,10 @@ in {
}; };
# FreshRSS & Co # FreshRSS & Co
drss.reverseProxy = "${dockerIP}:3007"; drss.reverseProxy = "${servivi}:3007";
freshrss = { freshrss = {
subDomainName = "rss"; subDomainName = "rss";
reverseProxy = "${dockerIP}:2800"; reverseProxy = "${servivi}:2800";
}; };
jellyseer = { jellyseer = {

View file

@ -5,6 +5,7 @@ in {
../../../../modules/arion.nix ../../../../modules/arion.nix
./forgejo/compose.nix ./forgejo/compose.nix
./freshrss/compose.nix
./homepage/compose.nix ./homepage/compose.nix
./immich/compose.nix ./immich/compose.nix
./music/jbots/compose.nix ./music/jbots/compose.nix

View file

@ -0,0 +1,50 @@
{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"];
};
};
}

View file

@ -0,0 +1,8 @@
pkgs:
pkgs.dockerTools.pullImage {
imageName = "theconnman/docker-hub-rss";
imageDigest = "sha256:3850badd3ebdb7d6583c8b67ebbcdd077b4e4ff2d8362ee31d78e334462d616f";
sha256 = "0h4lldnfd8nrrh598bxvnykkzjyqa9hqjb57g694fpy1zpqvy266";
finalImageName = "theconnman/docker-hub-rss";
finalImageTag = "latest";
}

View file

@ -0,0 +1,8 @@
pkgs:
pkgs.dockerTools.pullImage {
imageName = "freshrss/freshrss";
imageDigest = "sha256:c554223f485843553f7b7c9faff1f5c6c6113ce15b0288dd07210e97d8bbbbcc";
sha256 = "1vjsr0hfq5dfma2dll6jzkir14ii423nlvjjq6gq0mp9s19jidr7";
finalImageName = "freshrss/freshrss";
finalImageTag = "latest";
}

View file

@ -0,0 +1,8 @@
pkgs:
pkgs.dockerTools.pullImage {
imageName = "postgres";
imageDigest = "sha256:8420d1b03da7890f7cd21c711e520ca260cf35336aa0a794c1db6e9462dd3db1";
sha256 = "0xv4b6w7lh005ns61cdwzprbxgni4rlzg7haaqq1rlz5rpir9i0q";
finalImageName = "postgres";
finalImageTag = "14";
}

View file

@ -2,6 +2,9 @@
inherit (config.arion) toYAML; inherit (config.arion) toYAML;
inherit (config.sops) secrets; inherit (config.sops) secrets;
in { in {
# FIXME: Try to get homepage to resolve lan.nelim.org
#systemd.services."arion-homepage".after = ["tailscaled.service"];
arion.projects."homepage" = { arion.projects."homepage" = {
"homepage" = { "homepage" = {
image = ./images/homepage.nix; image = ./images/homepage.nix;

Binary file not shown.