20 lines
484 B
Nix
20 lines
484 B
Nix
{ config, pkgs, ... }:
|
|
let inherit (import ./lib.nix config) mkContainer; in
|
|
{
|
|
virtualisation.oci-containers.containers.prometheus = mkContainer {
|
|
image = "prom/prometheus";
|
|
hostName = "prometheus";
|
|
port = 9090;
|
|
volumes = [
|
|
"/tank/config/prometheus:/etc/prometheus"
|
|
];
|
|
environment = {
|
|
};
|
|
homepageOpts = {
|
|
group = "Infra";
|
|
name = "Prometheus";
|
|
icon = "prometheus.svg";
|
|
description = "Prometheus monitoring";
|
|
};
|
|
};
|
|
} |