chore: Update Docker Compose configuration.

This commit is contained in:
vinland100 2026-01-06 13:34:38 +08:00
parent c307609eaa
commit 7f74551b2d
1 changed files with 8 additions and 26 deletions

View File

@ -32,14 +32,10 @@ services:
backend:
build:
context: ./backend
args:
- http_proxy=
- https_proxy=
- HTTP_PROXY=
- HTTPS_PROXY=
- all_proxy=
- ALL_PROXY=
restart: unless-stopped
# 允许容器通过 host.docker.internal 访问宿主机
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
# - ./backend/app:/app/app:ro # 挂载代码目录,修改后自动生效
- backend_uploads:/app/uploads
@ -54,12 +50,11 @@ services:
- AGENT_ENABLED=true
- SANDBOX_ENABLED=true
- SANDBOX_IMAGE=deepaudit/sandbox:latest # 使用本地构建的沙箱镜像
# 禁用代理设置,防止容器内无法连接外部 API
- HTTP_PROXY=
- HTTPS_PROXY=
- http_proxy=
- https_proxy=
- NO_PROXY=*
# 指定 embedding 服务地址
- EMBEDDING_BASE_URL=http://host.docker.internal:8003/v1
# Gitea 配置
- GITEA_HOST_URL=http://sl.vrgon.com:3000
- GITEA_BOT_TOKEN=379a049b8d78965fdff474fc8676bca7e9c70248
depends_on:
db:
condition: service_healthy
@ -73,13 +68,6 @@ services:
frontend:
build:
context: ./frontend
args:
- http_proxy=
- https_proxy=
- HTTP_PROXY=
- HTTPS_PROXY=
- all_proxy=
- ALL_PROXY=
restart: unless-stopped
volumes:
# - ./frontend/dist:/usr/share/nginx/html:ro # 挂载构建产物,本地 pnpm build 后自动生效
@ -87,12 +75,6 @@ services:
ports:
- "83:80" # Nginx 监听 80 端口
environment:
# 禁用代理 - nginx 需要直连后端
- HTTP_PROXY=
- HTTPS_PROXY=
- http_proxy=
- https_proxy=
- NO_PROXY=*
- VITE_API_BASE_URL=/api/v1
depends_on:
- backend