25 lines
584 B
Nix
25 lines
584 B
Nix
{
|
|
image = "ghcr.io/open-webui/open-webui:main";
|
|
|
|
environment = {
|
|
"TZ" = "America/New York";
|
|
"OLLAMA_API_BASE_URL" = "http://127.0.0.1:11434/api";
|
|
"OLLAMA_BASE_URL" = "http://127.0.0.1:11434";
|
|
};
|
|
|
|
volumes = [
|
|
"/home/wolcen/.openweb-ui:/app/backend/data"
|
|
];
|
|
|
|
ports = [
|
|
"127.0.0.1:3000:8080" # Ensures we listen only on localhost
|
|
];
|
|
|
|
extraOptions = [
|
|
"--pull=newer" # Pull if the image on the registry is newer
|
|
"--name=open-webui"
|
|
"--hostname=open-webui"
|
|
"--network=host"
|
|
"--add-host=host.containers.internal:host-gateway"
|
|
];
|
|
};
|