Skip to content

Docker With Open WebUI#

What Is The Open WebUI?#

  • Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform designed to operate entirely offline. It supports various LLM runners like Ollama and OpenAI-compatible APIs, with built-in inference engine for RAG, making it a powerful AI deployment solution.
  • More informaion

Create Open WebUI With Docker#

  • Let's create a file name docker-compose.yaml, then add scripts as below:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
version: '3.9'
services:
    open-webui:
      image: 'ghcr.io/open-webui/open-webui:main'
      restart: always
      container_name: open-webui
      volumes:
      - './open-webui:/app/backend/data'
      extra_hosts:
      - 'host.docker.internal:host-gateway'
      ports:
      - '3000:8080'
  • Then let's create the folder open-webui which is located next to the docker-compose.yaml file then the data of container will be sync into this folder.

Testing#

  • Now you can use command docker-compose up to start your Open WebUI server.
  • Then we can access browser at localhost:3000 and login to access the dashboard.

 #zoom