From 29cbe09ba03a4bce8d150eee5731c61a2d7bfcbf Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Wed, 11 Sep 2024 17:40:29 +0200 Subject: [PATCH] grafana --- hosts/ds9/containers.nix | 12 ++++++++++++ hosts/ds9/default.nix | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/hosts/ds9/containers.nix b/hosts/ds9/containers.nix index b2c6d214..50f02eee 100644 --- a/hosts/ds9/containers.nix +++ b/hosts/ds9/containers.nix @@ -155,4 +155,16 @@ in ]; }; + virtualisation.oci-containers.containers.grafana = { + image = "grafana/grafana-oss:latest"; + extraOptions = [ "--network=podman" ]; + volumes = [ + "grafana-data:/var/lib/grafana" + ]; + environment = { + GF_SERVER_ROOT_URL = "https://grafana.hailsatan.eu/"; + GF_INSTALL_PLUGINS = ""; + }; + }; + } diff --git a/hosts/ds9/default.nix b/hosts/ds9/default.nix index 6e333360..94ea2192 100644 --- a/hosts/ds9/default.nix +++ b/hosts/ds9/default.nix @@ -162,6 +162,14 @@ in } } } + @grafana host grafana.hailsatan.eu + handle @grafana { + reverse_proxy http://grafana:3000 { + transport http { + resolvers 10.88.0.1 # podman dns + } + } + } @bzzt-api host bzzt-api.hailsatan.eu handle @bzzt-api { reverse_proxy http://127.0.0.1:5001