[mcp] Reorganizing container files
This commit is contained in:
33
system/hosts/mcp/containers/grafana.nix
Normal file
33
system/hosts/mcp/containers/grafana.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
./shared-postgres.nix
|
||||
];
|
||||
|
||||
virtulisation.oci-containers.grafana = {
|
||||
image = "grafana/grafana-enterprise";
|
||||
autoStart = true;
|
||||
dependsOn = [
|
||||
"db"
|
||||
];
|
||||
extraOptions = [
|
||||
"-l=traefik.enable=true"
|
||||
"-l=traefik.http.routers.grafana.rule=${localHostRule "grafana"}"
|
||||
"-l=traefik.http.services.grafana.loadbalancer.server.port=3000"
|
||||
"-l=homepage.group=Infra"
|
||||
"-l=homepage.name=Grafana"
|
||||
"-l=homepage.icon=grafana.png"
|
||||
"-l=homepage.href=https://grafana.${domain}"
|
||||
"-l=homepage.description=Database visualization"
|
||||
"-l=homepage.widget.type=grafana"
|
||||
"-l=homepage.widget.url=http://grafana.havenisms.com:3000"
|
||||
];
|
||||
volumes = [
|
||||
"grafana-storage:/var/lib/grafana"
|
||||
];
|
||||
environment = {
|
||||
GF_SERVER_ROOT_URL = "https://grafna.havenisms.com";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user