containers: add open-webui
This commit is contained in:
parent
461d9416f9
commit
8bfc60e2b3
3 changed files with 39 additions and 0 deletions
38
options/custom/containers/open-webui.nix
Normal file
38
options/custom/containers/open-webui.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.containers.open-webui;
|
||||
in {
|
||||
options.custom.containers.open-webui = {
|
||||
enable = mkOption {default = false;};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
#?? arion-open-webui pull
|
||||
environment.shellAliases.arion-open-webui = "sudo arion --prebuilt-file ${config.virtualisation.arion.projects.open-webui.settings.out.dockerComposeYaml}";
|
||||
|
||||
virtualisation.arion.projects.open-webui.settings.services = {
|
||||
# https://github.com/open-webui/open-webui
|
||||
# https://docs.openwebui.com/getting-started/quick-start/
|
||||
open-webui.service = {
|
||||
container_name = "open-webui";
|
||||
dns = ["100.100.100.100"]; # Tailscale resolver
|
||||
image = "ghcr.io/open-webui/open-webui:v0.5.20";
|
||||
network_mode = "host";
|
||||
restart = "unless-stopped";
|
||||
volumes = ["${config.custom.containers.directory}/open-webui/data:/app/backend/data"];
|
||||
|
||||
environment = {
|
||||
PORT = 3033; # 8080/tcp
|
||||
|
||||
# HACK: Offline Ollama endpoints result in an unusable interface, so cap timeout
|
||||
# https://github.com/open-webui/open-webui/issues/11228
|
||||
AIOHTTP_CLIENT_TIMEOUT = 5; # 300 seconds by default
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -22,6 +22,7 @@
|
|||
miniflux.enable = true;
|
||||
netbox.enable = true;
|
||||
#// nextcloud.enable = true;
|
||||
open-webui.enable = true;
|
||||
oryx.enable = true;
|
||||
#// owncast.enable = true;
|
||||
redlib.enable = true;
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue