Add some cruft...not actually active, but should this go modularly, this might help
This commit is contained in:
parent
a155fbef90
commit
ef4473d380
1 changed files with 25 additions and 0 deletions
25
hosts/default/open-webui.nix
Normal file
25
hosts/default/open-webui.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
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"
|
||||
];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue