From f097b9f8605e42ce2ed9ae525b1fd699f323cba9 Mon Sep 17 00:00:00 2001 From: Oli Schacher Date: Fri, 26 Jan 2024 10:08:52 +0100 Subject: [PATCH] add missing OLLAMA_WEBUI_PORT override --- run-compose.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run-compose.sh b/run-compose.sh index 7d1ff74d0..7b0f8d2ba 100755 --- a/run-compose.sh +++ b/run-compose.sh @@ -181,6 +181,9 @@ else DEFAULT_COMPOSE_COMMAND+=" -f docker-compose.data.yaml" export OLLAMA_DATA_DIR=$data_dir # Set OLLAMA_DATA_DIR environment variable fi + if [[ -n $webui_port ]]; then + export OLLAMA_WEBUI_PORT=$webui_port # Set OLLAMA_WEBUI_PORT environment variable + fi DEFAULT_COMPOSE_COMMAND+=" up -d" DEFAULT_COMPOSE_COMMAND+=" --remove-orphans" DEFAULT_COMPOSE_COMMAND+=" --force-recreate"