nix-config/containers/stirling-pdf/default.nix

24 lines
506 B
Nix
Raw Permalink Normal View History

2024-11-10 17:54:08 -05:00
{ ... }:
let
directories = [
"/opt/stirling"
];
in
{
systemd.tmpfiles.rules = map (x: "d ${x} 0755 share share - -") directories;
virtualisation.oci-containers.containers.pdf-tools = {
image = "frooodle/s-pdf:latest";
autoStart = true;
ports = [
"8060:8080"
];
volumes = [
"/opt/stirling/training-data:/usr/share/tesseract-ocr/4.00/tessdata"
"/opt/stirling/configs:/configs"
];
environment = {
DOCKER_ENABLE_SECURITY = "false";
};
};
}