containers: add uptimekuma
This commit is contained in:
parent
0783c48310
commit
302f4cc33b
3 changed files with 32 additions and 0 deletions
31
options/custom/containers/uptimekuma.nix
Normal file
31
options/custom/containers/uptimekuma.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue