From db86f8de7adce0bdb3ac3b1c410e478c07526547 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Sun, 26 Feb 2023 13:11:33 +0100 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20kuma.nix=20=09mod?= =?UTF-8?q?ifi=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20../hosts/x201/nixos/?= =?UTF-8?q?dev.nix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/kuma.nix | 23 +++++++++++++++++++++++ hosts/x201/nixos/dev.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 docker/kuma.nix diff --git a/docker/kuma.nix b/docker/kuma.nix new file mode 100644 index 0000000..b0e0913 --- /dev/null +++ b/docker/kuma.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: +let + host = "kuma.atlanticaweb.fr"; +in +{ + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + }; + oci-containers = { + backend = "podman"; + containers.uptime-kuma = { + image = "louislam/uptime-kuma"; + autoStart = true; + ports = [ "3001:3001" ]; #server locahost : docker localhost + volumes = [ + "/srv/docker/app/data:/app/data" + ]; + }; + }; + }; +} diff --git a/hosts/x201/nixos/dev.nix b/hosts/x201/nixos/dev.nix index 84e3e9f..f129033 100644 --- a/hosts/x201/nixos/dev.nix +++ b/hosts/x201/nixos/dev.nix @@ -4,6 +4,7 @@ # nodejs # ]; +virtualisation.docker.enable = true; # Enable PostgreSQL services.postgresql = { enable = true;