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