From 7df5cf425a28638278dceb379b0bae28e7f28bed Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sat, 28 Sep 2024 19:52:10 -0400 Subject: [PATCH] add open webui --- wind/docker/open-webui.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 wind/docker/open-webui.sh diff --git a/wind/docker/open-webui.sh b/wind/docker/open-webui.sh new file mode 100755 index 0000000..bfcb87b --- /dev/null +++ b/wind/docker/open-webui.sh @@ -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 +} + +$@