2024-02-28 22:22:14 -05:00
|
|
|
{config, ...}: let
|
|
|
|
inherit (config.arion) rwDataDir;
|
|
|
|
|
|
|
|
rwPath = rwDataDir + "/media/calibre";
|
|
|
|
in {
|
|
|
|
arion.projects."calibre" = {
|
|
|
|
"calibre" = {
|
|
|
|
image = ./images/calibre.nix;
|
|
|
|
restart = "always";
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "America/New_York";
|
2024-03-06 14:35:29 -05:00
|
|
|
|
|
|
|
# WebUI vars
|
|
|
|
SUBFOLDER = "/calibre/";
|
|
|
|
TITLE = "CalibreDB";
|
|
|
|
NO_DECOR = "true";
|
2024-02-28 22:22:14 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
volumes = ["${rwPath}/data-db:/config"];
|
|
|
|
|
2024-03-19 20:40:45 -04:00
|
|
|
extra_hosts = ["lan.nelim.org=10.0.0.130"];
|
2024-02-28 22:22:14 -05:00
|
|
|
ports = [
|
|
|
|
"8580:8080"
|
|
|
|
#"8081:8081"
|
|
|
|
];
|
|
|
|
#network_mode = "host";
|
|
|
|
};
|
|
|
|
|
|
|
|
"calibre-web" = {
|
|
|
|
image = ./images/calibre-web.nix;
|
|
|
|
restart = "always";
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "America/New_York";
|
|
|
|
DOCKER_MODS = "linuxserver/mods:universal-calibre";
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
"${rwPath}/data-web:/config"
|
|
|
|
"${rwPath}/data-db/Calibre Library:/books"
|
|
|
|
];
|
|
|
|
|
2024-03-19 20:40:45 -04:00
|
|
|
extra_hosts = ["lan.nelim.org=10.0.0.130"];
|
2024-02-28 22:22:14 -05:00
|
|
|
ports = ["8083:8083"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|