From 644b7ce65c6c7730d121855caa1e02d820a37142 Mon Sep 17 00:00:00 2001 From: vinland100 Date: Mon, 2 Mar 2026 15:46:43 +0800 Subject: [PATCH] Remove `docker-compose.prod.yml` and update a comment in `docker-compose.yml`. --- docker-compose.prod.yml | 125 ---------------------------------------- docker-compose.yml | 2 +- 2 files changed, 1 insertion(+), 126 deletions(-) delete mode 100644 docker-compose.prod.yml diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml deleted file mode 100644 index cd7df8d..0000000 --- a/docker-compose.prod.yml +++ /dev/null @@ -1,125 +0,0 @@ -# ============================================= -# DeepAudit 生产环境一键部署配置 -# ============================================= -# 使用预构建的 GHCR 镜像,无需本地构建 -# 部署命令: curl -fsSL https://raw.githubusercontent.com/lintsinghua/DeepAudit/main/docker-compose.prod.yml | docker compose -f - up -d - -services: - db: - image: postgres:15-alpine - restart: unless-stopped - volumes: - - postgres_data:/var/lib/postgresql/data - environment: - - POSTGRES_USER=postgres - - POSTGRES_PASSWORD=postgres - - POSTGRES_DB=deepaudit - healthcheck: - test: [ "CMD-SHELL", "pg_isready -U postgres" ] - interval: 5s - timeout: 5s - retries: 5 - networks: - - deepaudit-network - - redis: - image: redis:7-alpine - restart: unless-stopped - volumes: - - redis_data:/data - healthcheck: - test: [ "CMD", "redis-cli", "ping" ] - interval: 10s - timeout: 5s - retries: 5 - networks: - - deepaudit-network - - backend: - image: sl.vrgon.com:3000/WuYanBo/codereview:backend - restart: unless-stopped - volumes: - - backend_uploads:/app/uploads - - chroma_data:/app/data/vector_db - - ci_workspace:/app/data/ci_workspace - - ci_vectordb:/app/data/ci_vectordb - - /var/run/docker.sock:/var/run/docker.sock - ports: - - "8000:8000" - environment: - - DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/deepaudit - - REDIS_URL=redis://redis:6379/0 - - AGENT_ENABLED=true - - SANDBOX_ENABLED=true - - SANDBOX_IMAGE=sl.vrgon.com:3000/WuYanBo/codereview:sandbox - # LLM 配置 - 请根据需要修改 - - LLM_PROVIDER=${LLM_PROVIDER:-openai} - - LLM_MODEL=${LLM_MODEL:-gpt-4o} - - LLM_API_KEY=${LLM_API_KEY:-your-api-key-here} - - LLM_BASE_URL=${LLM_BASE_URL:-} - # 禁用代理 - 必须同时设置大小写变量 - - HTTP_PROXY= - - HTTPS_PROXY= - - http_proxy= - - https_proxy= - - all_proxy= - - ALL_PROXY= - - NO_PROXY=* - - no_proxy=* - depends_on: - db: - condition: service_healthy - redis: - condition: service_healthy - db-migrate: - condition: service_completed_successfully - networks: - - deepaudit-network - - # 数据库迁移服务 - 在后端启动前自动执行 - db-migrate: - image: sl.vrgon.com:3000/WuYanBo/codereview:backend - restart: "no" - environment: - - DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/deepaudit - command: [ ".venv/bin/alembic", "upgrade", "head" ] - depends_on: - db: - condition: service_healthy - networks: - - deepaudit-network - - frontend: - image: sl.vrgon.com:3000/WuYanBo/codereview:frontend - restart: unless-stopped - ports: - - "83:80" # Nginx 监听 80 端口 - environment: - # 禁用代理 - nginx 需要直连后端 - - HTTP_PROXY= - - HTTPS_PROXY= - - http_proxy= - - https_proxy= - - NO_PROXY=* - depends_on: - - backend - networks: - - deepaudit-network - - # 预拉取沙箱镜像(后端会按需调用) - sandbox-pull: - image: sl.vrgon.com:3000/WuYanBo/codereview:sandbox - restart: "no" - command: echo "Sandbox image ready" - -networks: - deepaudit-network: - driver: bridge - -volumes: - postgres_data: - backend_uploads: - chroma_data: - ci_workspace: - ci_vectordb: - redis_data: diff --git a/docker-compose.yml b/docker-compose.yml index 705d0dc..24c7112 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ # ============================================= -# DeepAudit Docker Compose 配置 (Dify Style) +# DeepAudit Docker Compose 配置 # ============================================= # 共享环境变量定义