feat: Create services
folder with test uptime-kuma
service
First-try deploy yay
This commit is contained in:
parent
000b708e81
commit
dcef2ee26d
3 changed files with 19 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./sops.nix
|
./sops.nix
|
||||||
|
../../services
|
||||||
];
|
];
|
||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
|
|
5
services/default.nix
Normal file
5
services/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./uptime-kuma
|
||||||
|
];
|
||||||
|
}
|
13
services/uptime-kuma/default.nix
Normal file
13
services/uptime-kuma/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{...}: {
|
||||||
|
services.caddy.virtualHosts."uptime.gasdev.fr".extraConfig = ''
|
||||||
|
reverse_proxy http://127.0.0.1:3001
|
||||||
|
'';
|
||||||
|
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
container-name = {
|
||||||
|
image = "docker.io/louislam/uptime-kuma:1";
|
||||||
|
autoStart = true;
|
||||||
|
ports = ["127.0.0.1:3001:3001"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue