"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "0ede1d1483ca18197eed6df1565e73cefc5a7d5e"
Commit 0fe673a5 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

doc: docker command update

parent fc3bf33e
...@@ -112,11 +112,17 @@ docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_ORIGINS="*" --nam ...@@ -112,11 +112,17 @@ docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_ORIGINS="*" --nam
#### Installing Ollama Web UI #### Installing Ollama Web UI
Change `OLLAMA_API_BASE_URL` to match the external Ollama Server url: Change `OLLAMA_API_BASE_URL` environment variable to match the external Ollama Server url:
```bash ```bash
docker build --build-arg OLLAMA_API_BASE_URL='https://example.com/api' -t ollama-webui . docker run -d -p 3000:8080 -e OLLAMA_API_BASE_URL=https://example.com/api --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main
docker run -d -p 3000:8080 --name ollama-webui --restart always ollama-webui ```
Alternatively, if you prefer to build the container yourself, use the following command:
```bash
docker build -t ollama-webui .
docker run -d -p 3000:8080 -e OLLAMA_API_BASE_URL=https://example.com/api --name ollama-webui --restart always ollama-webui
``` ```
## How to Build for Static Deployment ## How to Build for Static Deployment
......
...@@ -14,7 +14,7 @@ services: ...@@ -14,7 +14,7 @@ services:
volumes: volumes:
- ollama:/root/.ollama - ollama:/root/.ollama
ports: ports:
- 11434:11434 - 127.0.0.1:11434:11434
container_name: ollama container_name: ollama
pull_policy: always pull_policy: always
tty: true tty: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment