{ config, pkgs, ... }:
{
virtualisation.oci-containers.containers = {
chromadb = {
autoStart = true;
environment = {
ALLOW_RESET = "true";
IS_PERSISTENT = "true";
CHROMA_SERVER_CORS_ALLOW_ORIGINS = "[\"*\"]";
};
extraOptions = [
"--network=lm-network" # Use `=` to combine flag and value <button class="citation-flag" data-index="3"><button class="citation-flag" data-index="7">
];
hostname = "chromadb";
image = "chromadb/chroma";
ports = [
"127.0.0.1:8001:8000"
];
# pull = "newer"; TODO upgrade once the option becomes available
volumes = [
"chroma_data:/chroma/chroma_data"
];
};
};
}