add open webui

master
Paul Walko 2024-09-28 19:52:10 -04:00
parent 7cfbd7dbe2
commit 7df5cf425a
1 changed files with 24 additions and 0 deletions

24
wind/docker/open-webui.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
set -e
up () {
docker network create pew-net || true
# Exposed on port 8080 on pew-net
docker run \
--detach \
--name open-webui \
--restart unless-stopped \
--volume /bigdata/open-webui/data:/app/backend/data:rw \
--volume /bigdata/open-webui/ollama:/root/.ollama:rw \
--network pew-net \
ghcr.io/open-webui/open-webui:ollama
}
down () {
docker stop open-webui || true
docker rm open-webui || true
}
$@