script ot start openwebui

This commit is contained in:
Alex Cheema
2024-08-26 17:33:23 +01:00
parent 394935711b
commit ebff636a25

3
extra/start_openwebui.sh Executable file
View File

@@ -0,0 +1,3 @@
API_ENDPOINT="http://${API_ENDPOINT:-$(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | head -n 1):8000}"
echo "Using API_ENDPOINT=${API_ENDPOINT}"
docker run -d -p 3000:8080 -e OPENAI_API_BASE_URL="${API_ENDPOINT}" -e OPENAI_API_KEY=your_secret_key -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main