feat: Create services folder with test uptime-kuma service

First-try deploy yay
This commit is contained in:
GaspardCulis 2024-09-27 15:57:06 +02:00
parent 000b708e81
commit dcef2ee26d
3 changed files with 19 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
{
imports = [
./uptime-kuma
];
}

View 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"];
};
};
}