M systems/hosts/oci/default.nix => systems/hosts/oci/default.nix +1 -0
@@ 3,6 3,7 @@
registryUIPort = 5080;
in {
imports = [
+ ./umami.nix
./websites.nix
];
A systems/hosts/oci/umami.nix => systems/hosts/oci/umami.nix +36 -0
@@ 0,0 1,36 @@
+{pkgs, ...}: let
+ umamiPort = 3000;
+in {
+ networking.firewall.allowedTCPPorts = [
+ umamiPort
+ ];
+
+ services.postgresql = {
+ package = pkgs.postgresql_16;
+ enable = true;
+ enableTCPIP = true;
+ authentication = "host umami umami 127.0.0.1/32 trust";
+ ensureDatabases = ["umami"];
+ ensureUsers = [
+ {
+ name = "umami";
+ ensureDBOwnership = true;
+ }
+ ];
+ };
+
+ virtualisation.oci-containers.containers."umami" = {
+ image = "ghcr.io/umami-software/umami:postgresql-v2.13.2";
+ extraOptions = [
+ "--network=host"
+ ];
+ hostname = "umami";
+ environment = {
+ PORT = toString umamiPort;
+ DATABASE_TYPE = "postgresql";
+ DATABASE_URL = "postgresql://umami:umami@127.0.0.1:5432/umami";
+ DISABLE_TELEMETRY = "1";
+ PRIVATE_MODE = "1";
+ };
+ };
+}
M systems/hosts/proxy/haproxy.conf => systems/hosts/proxy/haproxy.conf +1 -1
@@ 102,4 102,4 @@ backend be_registry
server registry 10.1.1.10:5000
backend be_umami
- server umami 10.1.1.10:8700
+ server umami 10.1.2.9:3000