1
1
Fork 0

containers: add open-webui

This commit is contained in:
Myned 2025-03-26 20:52:43 -05:00
parent 461d9416f9
commit 8bfc60e2b3
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C7224454F7881A34
3 changed files with 39 additions and 0 deletions
options/custom/containers
profiles/server
secrets/server/caddy

View 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
};
};
};
};
}

View file

@ -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.