25 lines
459 B
Bash
25 lines
459 B
Bash
|
#!/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
|
||
|
}
|
||
|
|
||
|
$@
|