mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
ollama api 已禁用! #3757
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lzonerr on GitHub (Feb 11, 2025).
open-webui 网页端打开ollama api 显示已禁用,之前好好的,突然不能用。
我的docker-compose文件如下:
`networks:
shared-network:
driver: bridge
services:
postgres:
image: postgres # 使用最新的 PostgreSQL 镜像
container_name: postgres
restart: always
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data' # 数据存储在当前目录的 data 文件夹
environment:
POSTGRES_PASSWORD: psswd
POSTGRES_DB: openwebui # 初始化创建的数据库名称
LANG: C.UTF-8
networks:
- shared-network
open-webui:
image: ghcr.io/open-webui/open-webui:main # 保持最新镜像 tag
container_name: open-webui
restart: always
ports:
- "3000:8080" # 本地端口映射到容器端口
volumes:
- './open-webui-data:/app/backend/data' # 数据存储在当前目录的 open-webui-data 文件夹
environment:
ENV: dev
DATABASE_URL: postgresql://postgres:passwd@postgres:5432/openwebui # 使用 PostgreSQL 服务的容器名作为主机名
DATABASE_POOL_SIZE: 10
DATABASE_POOL_MAX_OVERFLOW: 20
BYPASS_MODEL_ACCESS_CONTROL: true
# HTTP 代理配置(如需要)
# http_proxy: http://127.0.0.1:7890
networks:
- shared-network`
尝试过的办法:
以下是出现的情况:
