1
1
Fork 0

containers: add uptimekuma

This commit is contained in:
Myned 2025-04-11 21:32:04 -05:00
parent 0783c48310
commit 302f4cc33b
Signed by: myned
GPG key ID: C7224454F7881A34
3 changed files with 32 additions and 0 deletions
options/custom/containers
profiles/server
secrets/server/caddy

View file

@ -0,0 +1,31 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.custom.containers.uptimekuma;
in {
options.custom.containers.uptimekuma = {
enable = mkEnableOption "uptimekuma";
};
config = mkIf cfg.enable {
#?? arion-uptimekuma pull
environment.shellAliases.arion-uptimekuma = "sudo arion --prebuilt-file ${config.virtualisation.arion.projects.uptimekuma.settings.out.dockerComposeYaml}";
virtualisation.arion.projects.uptimekuma.settings.services = {
# https://uptime.kuma.pet/
# https://github.com/louislam/uptime-kuma
# https://github.com/louislam/uptime-kuma/blob/master/compose.yaml
uptimekuma.service = {
container_name = "uptimekuma";
dns = ["100.100.100.100"]; # Tailscale resolver
image = "louislam/uptime-kuma:2.0.0-beta.2";
network_mode = "host"; # 3001/tcp
restart = "unless-stopped";
volumes = ["${config.custom.containers.directory}/uptimekuma/data:/app/data"];
};
};
};
}

View file

@ -30,6 +30,7 @@
redlib.enable = true;
searxng.enable = true;
stremio.enable = true;
uptimekuma.enable = true;
vaultwarden.enable = true;
wikijs.enable = true;
};

Binary file not shown.