llm, finalize the open-webui setup, network=host works great, still really unsure why the port mapping was not forwarding correctly.

This commit is contained in:
me
2026-10-13 09:54:29 -07:00
parent 9d7a6414b3
commit 951959a00b
+14 -6
View File
@@ -364,29 +364,36 @@
exec 2>&1
# Wait for Docker to start up.
while [ ! -S /var/run/docker.sock ]; do sleep 1; done
# Ensure the old container is gone.
echo "RUN: Stopping..."
docker stop open-webui &&
echo "RUN: Container stopped" ||
echo "RUN: Container already stopped."
echo "RUN: Deleting..."
docker rm -f open-webui &&
echo "RUN: Container deleted" ||
echo "RUN: Container already deleted."
# Start the open-webui program.
set -e
exec docker run --rm \
-p {{ open_webui_port }}:8080 \
--add-host=host.docker.internal:host-gateway \
exec docker run \
--rm \
--name open-webui \
--network=host -e PORT={{ open_webui_port }} \
-v open-webui:/app/backend/data \
{{ ("-e HF_TOKEN=" ~ hf_token) if hf_token else '' }} \
-e WEBUI_SECRET_KEY={{ open_webui_key }} \
-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
--name open-webui \
ghcr.io/open-webui/open-webui
ghcr.io/open-webui/open-webui:main
#-p {{ open_webui_port }}:8080 \
#--add-host=host.docker.internal:host-gateway \
#-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
mode: "0755"
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Script | Finish
@@ -402,6 +409,7 @@
docker stop open-webui &&
echo "FINISH: Container stopped" ||
echo "FINISH: Container already stopped."
echo "FINISH: Deleting..."
docker rm -f open-webui &&
echo "FINISH: Container deleted" ||