From 0fe673a5236414d32b4b3c25b23dd7c77f993278 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 15 Nov 2023 11:57:04 -0800 Subject: [PATCH] doc: docker command update --- README.md | 12 +++++++++--- compose.yaml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 409bd9146..990a0e84d 100644 --- a/README.md +++ b/README.md @@ -112,11 +112,17 @@ docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_ORIGINS="*" --nam #### 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 -docker build --build-arg OLLAMA_API_BASE_URL='https://example.com/api' -t ollama-webui . -docker run -d -p 3000:8080 --name ollama-webui --restart always 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 +``` + +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 diff --git a/compose.yaml b/compose.yaml index 0a77d64f8..dc356d0a9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -14,7 +14,7 @@ services: volumes: - ollama:/root/.ollama ports: - - 11434:11434 + - 127.0.0.1:11434:11434 container_name: ollama pull_policy: always tty: true