snowflake/hosts/sakura/services/rustlog.nix
2024-12-24 00:53:38 -05:00

31 lines
898 B
Nix

{lib, ...}: {
networking.firewall.allowedTCPPorts = [8025 8123];
systemd.services = {
docker-rustlog.serviceConfig = {PrivateNetwork = lib.mkForce false;};
};
virtualisation.oci-containers.containers = {
clickhouse = {
image = "clickhouse/clickhouse-server:latest";
environment = {
CLICKHOUSE_DB = "rustlog";
CLICKHOUSE_HOST = "192.168.1.25";
};
extraOptions = ["--network=host"];
volumes = [
"/home/notoh/rustlog/clickhouse:/var/lib/clickhouse:rw"
];
};
rustlog = {
hostname = "rustlog";
image = "ghcr.io/boring-nick/rustlog@sha256:1c6ea8c13d8f154557a7430cdc70d3df89b1413a79c15293c73644e572ae0317";
ports = ["8025:8025"];
volumes = [
"/home/notoh/rustlog/config.json:/config.json"
];
dependsOn = ["clickhouse"];
extraOptions = ["--network=host"];
};
};
}