1.创建docker compose yaml文件

vim docker-compose.yml
version: '3.8'
 
services:
  open-webui:
    image: ghcr.nju.edu.cn/open-webui/open-webui:main
    container_name: open-webui
    ports:
      - "3000:8080"
    environment:
      - OLLAMA_BASE_URL=http://172.10.1.192:11434
    volumes:
      - open-webui_data:/app/backend/data    
    restart: always
 
volumes:
  open-webui_data:

2.运行

docker compose up -d

3.优化openweb-ui页面打开速度。
在这里插入图片描述
根据图片标注关闭openai api即可。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐