OpenWeb UI Custom

This revision is from 2024/10/03 20:43. You can Restore it.

git clone https://github.com/open-webui/openwebui.git

cd openwebui

Build the custom open webui

docker build -t openwebui:latest .

Run the customer open webui

docker run -d --name openwebui -p 3000:8080 openwebui:latest

Rebuild the image with the same tag:

docker build -t openwebui:latest .

Stop and remove the existing container:

docker stop openwebui

docker rm openwebui

Run the new container:

docker run -d --name openwebui -p 3000:8080 openwebui:latest

Changes

/src/lib/components/chat/Messages/Placeholder.svelte

/src/lib/components/layout/Help/HelpMenu.svelte

/src/lib/components/layout/Sidebar/UserMenu.svelte

/src/routes/auth/+page.svelte

/src/app.html

/src/lib/i18n/locales/en-US/translation.json

/src/lib/i18n/locales/en-GB/translation.json

/static

/static/static/

/src/app.html

/src/lib/components/chat/Settings/About.svelte

/src/routes/(app)/+layout.svelte

Current Build and Run Command

docker build -t openwebui:latest .

Run the customer open webui

docker run -d --name openwebui -p 3000:8080 openwebui:latest

Custom Image with Ollama Support

First, build your custom Open WebUI image:

docker build -t custom-open-webui:latest .

Modify the docker-compose.yaml file to use your custom image instead of the official one.

open-webui:

image: custom-open-webui:latest

container_name: open-webui

volumes:

- open-webui:/app/backend/data

depends_on:

- ollama

ports:

- ${OPEN_WEBUI_PORT-3000}:8080

environment:

- 'OLLAMA_BASE_URL=http://ollama:11434'

- 'WEBUI_SECRET_KEY='

extra_hosts:

- host.docker.internal:host-gateway

restart: unless-stopped

Now you can use Docker Compose to start both services:

docker-compose up -d

If you make further changes to your Open WebUI code, you'll need to:

docker build -t custom-open-webui:latest .

Stop and remove the existing containers:

docker-compose down

Start the services again:

docker-compose up -d

  

📝 📜 ⏱️ ⬆️