Add modules/server/containers/apps/selfmark.nix
This commit is contained in:
36
modules/server/containers/apps/selfmark.nix
Normal file
36
modules/server/containers/apps/selfmark.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{ config, containerCfg, pkgs, lib, builder, name,... }:
|
||||||
|
let
|
||||||
|
version = "latest";
|
||||||
|
serverCfg = config.syscfg.server;
|
||||||
|
|
||||||
|
in {
|
||||||
|
sops = false;
|
||||||
|
db = false;
|
||||||
|
paths = [{
|
||||||
|
path = "${serverCfg.configPath}/selfmark/";
|
||||||
|
mode = "0444";
|
||||||
|
}];
|
||||||
|
|
||||||
|
containers = {
|
||||||
|
selfmark = builder.mkContainer {
|
||||||
|
subdomain = containerCfg.subdomain;
|
||||||
|
subpath = containerCfg.subpath;
|
||||||
|
image = "ghcr.io/calibrain/shelfmark:${version}";
|
||||||
|
port = 8080;
|
||||||
|
|
||||||
|
extraEnv = {
|
||||||
|
FLASK_PORT = "8080";
|
||||||
|
INGEST_DIR = "/books";
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
SEARCH_MODE = "universal";
|
||||||
|
};
|
||||||
|
overrides = {
|
||||||
|
ports = [ "8080:8080" ];
|
||||||
|
cmd = [ ];
|
||||||
|
volumes = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user