added the drop capability and updated readme accordingly

This commit is contained in:
Daniele Viti
2023-12-24 14:21:34 +01:00
parent 567b88bb00
commit 7063f00b71
2 changed files with 18 additions and 7 deletions

View File

@@ -80,10 +80,12 @@ usage() {
echo " -h, --help Show this help message."
echo ""
echo "Examples:"
echo " $0 --enable-gpu[count=1]"
echo " $0 --enable-api[port=11435]"
echo " $0 --enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000]"
echo " $0 --enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000] --data[folder=./ollama-data]"
echo " ./$0 --drop"
echo " ./$0 --enable-gpu[count=1]"
echo " ./$0 --enable-api[port=11435]"
echo " ./$0 --enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000]"
echo " ./$0 --enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000] --data[folder=./ollama-data]"
echo " ./$0 --enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000] --data[folder=./ollama-data] --build"
echo ""
echo "This script configures and runs a docker-compose setup with optional GPU support, API exposure, and web UI configuration."
echo "About the gpu to use, the script automatically detects it using the "lspci" command."