1
Files
flake-homelab/ServeNix/services/formula10.nix
Christoph Urlacher 603c7e3c1d Add formula10 cache volume
Will be used for the FastF1 cache in the future
2024-09-23 00:46:18 +02:00

32 lines
543 B
Nix

{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.formula10 = {
image = "gitea.vps.chriphost.de/christoph/formula10:latest";
autoStart = true;
dependsOn = [];
ports = [
"55555:5000"
];
volumes = [
"formula10_data:/app/instance"
"formula10_cache:/cache"
];
environment = {
TZ = "Europe/Berlin";
};
extraOptions = [
"--init" # Make an init process take up PID 1, to make python receive the SIGTERM
"--net=behind-nginx"
];
};
}