User Tools

Site Tools


ai:openwebui:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ai:openwebui:start [2024/08/23 02:22] – created azam01ai:openwebui:start [2024/11/25 12:26] (current) azam01
Line 26: Line 26:
  
 2. Run the OpenWebUI Docker container: 2. Run the OpenWebUI Docker container:
-   docker run -d --name openwebui +   sudo docker run -d \ 
-     -p 3000:8080 +   --network=host -v /home/azam/open-webui/:/app/backend/data 
-     -e OLLAMA_API_BASE_URL=http://host.docker.internal:11434/api +   -e OLLAMA_BASE_URL=http://127.0.0.1:11434 \ 
-     --add-host host.docker.internal:host-gateway \ +   --name open-webui --restart always ghcr.io/open-webui/open-webui:main
-     ghcr.io/open-webui/open-webui:main+
  
 This command does the following: This command does the following:
Line 38: Line 37:
 2. Names the container "openwebui" (`--name openwebui`) 2. Names the container "openwebui" (`--name openwebui`)
  
-3. Maps port 3000 on the host to port 8080 in the container (`-p 3000:8080`)+3. If Ollama and OpenWebUI are running on the same system it uses the system network (`--network=host`)
  
 4. Sets the Ollama API base URL environment variable (`-e OLLAMA_API_BASE_URL=...`) 4. Sets the Ollama API base URL environment variable (`-e OLLAMA_API_BASE_URL=...`)
- 
-5. Adds a host entry to allow the container to communicate with the host machine (`--add-host ...`) 
  
 6. Uses the OpenWebUI Docker image (`ghcr.io/open-webui/open-webui:main`) 6. Uses the OpenWebUI Docker image (`ghcr.io/open-webui/open-webui:main`)
Line 49: Line 46:
  
 1. Open a web browser and navigate to: 1. Open a web browser and navigate to:
-   http://localhost:3000+   http://localhost:8080
  
 ===== Step 6: Configure OpenWebUI ===== ===== Step 6: Configure OpenWebUI =====
ai/openwebui/start.1724372542.txt.gz · Last modified: 2024/08/23 02:22 by azam01