update: mihomo

This commit is contained in:
2026-03-20 10:48:59 +08:00
parent 213aaab8de
commit 3c2010fcf3
15 changed files with 1901 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
services:
# --- 数据库服务 (PostgreSQL) ---
db:
image: postgres:15-alpine
@@ -15,6 +16,8 @@ services:
interval: 5s
timeout: 5s
retries: 5
networks:
- webui-network
# --- 缓存服务 (Redis) ---
redis:
@@ -28,10 +31,10 @@ services:
interval: 5s
timeout: 5s
retries: 5
# --- Open WebUI 主程序 ---
networks:
- webui-network
open-webui:
image: open-webui/open-webui:main
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
ports:
@@ -42,18 +45,27 @@ services:
redis:
condition: service_healthy
environment:
# 数据库连接配置
# --- 代理设置 (核心修改) ---
- HTTP_PROXY=http://host.docker.internal:7890
- HTTPS_PROXY=http://host.docker.internal:7890
# 极其重要NO_PROXY 必须包含 db 和 redis否则 WebUI 会尝试通过代理连接数据库,导致连接失败
- NO_PROXY=localhost,127.0.0.1,db,redis,host.docker.internal
# 数据库连接配置 (保持不变)
- DATABASE_URL=postgresql://webui_admin:VURKxKYDmKw8u1CdS6RUf5LC@db:5432/openwebui
# Redis 连接配置
# Redis 连接配置 (保持不变)
- REDIS_URL=redis://redis:6379/0
# Ollama 接口地址 (根据实际情况调整)
# Ollama 接口地址 (指向宿主机)
- OLLAMA_BASE_URL=http://host.docker.internal:11434
# 安全密钥
- WEBUI_SECRET_KEY=HU13YdOhfTaINvCe1PvjlhW0yHVaiaBBqsCtXCWFDAKD44zp
volumes:
- ./data:/app/backend/data
extra_hosts:
- "host.docker.internal:host-gateway"
- "host.docker.internal:host-gateway" # 允许容器访问宿主机 IP
networks:
- webui-network
volumes:
# 也可以使用上述 ./data 这种本地路径形式,更加直观

File diff suppressed because one or more lines are too long