Merge pull request #578 from gryphius/fix-webui-port

add missing OLLAMA_WEBUI_PORT override
This commit is contained in:
Timothy Jaeryang Baek 2024-01-26 11:10:54 -08:00 committed by GitHub
commit 0e831f4cf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -181,6 +181,9 @@ else
DEFAULT_COMPOSE_COMMAND+=" -f docker-compose.data.yaml" DEFAULT_COMPOSE_COMMAND+=" -f docker-compose.data.yaml"
export OLLAMA_DATA_DIR=$data_dir # Set OLLAMA_DATA_DIR environment variable export OLLAMA_DATA_DIR=$data_dir # Set OLLAMA_DATA_DIR environment variable
fi 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+=" up -d"
DEFAULT_COMPOSE_COMMAND+=" --remove-orphans" DEFAULT_COMPOSE_COMMAND+=" --remove-orphans"
DEFAULT_COMPOSE_COMMAND+=" --force-recreate" DEFAULT_COMPOSE_COMMAND+=" --force-recreate"