mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
doc: clarify usage of OLLAMA_API_BASE_URL
This commit is contained in:
parent
87c8467dd6
commit
6129f41273
@ -48,9 +48,10 @@ OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve
|
|||||||
|
|
||||||
### Using Docker 🐳
|
### Using Docker 🐳
|
||||||
|
|
||||||
```bash
|
If Ollama is hosted on your local machine, run the following command:
|
||||||
docker build --build-arg OLLAMA_API_BASE_URL='http://localhost:11434/api' -t ollama-webui .
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build --build-arg OLLAMA_API_BASE_URL='' -t ollama-webui .
|
||||||
docker run -d -p 3000:8080 --name ollama-webui --restart always ollama-webui
|
docker run -d -p 3000:8080 --name ollama-webui --restart always ollama-webui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
PUBLIC_API_BASE_URL="http://localhost:11434/api"
|
# must be defined, but defaults to 'http://{location.hostname}:11434/api'
|
||||||
|
# can also use path, such as '/api'
|
||||||
|
PUBLIC_API_BASE_URL=''
|
||||||
|
|
||||||
OLLAMA_API_ID='my-api-token'
|
OLLAMA_API_ID='my-api-token'
|
||||||
OLLAMA_API_TOKEN='xxxxxxxxxxxxxxxx'
|
OLLAMA_API_TOKEN='xxxxxxxxxxxxxxxx'
|
||||||
|
Loading…
Reference in New Issue
Block a user