chore: Update Docker image repository in production compose and build workflows, and remove the China-specific production compose file.
Build and Push CodeReview / build (push) Waiting to run
Details
Build and Push CodeReview / build (push) Waiting to run
Details
This commit is contained in:
parent
6c68a7c51e
commit
7da7cf7fa9
|
|
@ -27,18 +27,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
push: true
|
push: true
|
||||||
tags: sl.vrgon.com:3000/zk_senlan/codereview:backend
|
tags: sl.vrgon.com:3000/WuYanBo/codereview:backend
|
||||||
|
|
||||||
- name: Build and Push Frontend
|
- name: Build and Push Frontend
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
push: true
|
push: true
|
||||||
tags: sl.vrgon.com:3000/zk_senlan/codereview:frontend
|
tags: sl.vrgon.com:3000/WuYanBo/codereview:frontend
|
||||||
|
|
||||||
- name: Build and Push Sandbox
|
- name: Build and Push Sandbox
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./docker/sandbox
|
context: ./docker/sandbox
|
||||||
push: true
|
push: true
|
||||||
tags: sl.vrgon.com:3000/zk_senlan/codereview:sandbox
|
tags: sl.vrgon.com:3000/WuYanBo/codereview:sandbox
|
||||||
|
|
|
||||||
|
|
@ -1,117 +0,0 @@
|
||||||
# =============================================
|
|
||||||
# DeepAudit v3.0.2 生产环境一键部署配置(国内加速版)
|
|
||||||
# =============================================
|
|
||||||
# 使用南京大学镜像站加速拉取 GHCR 镜像
|
|
||||||
# 部署命令: curl -fsSL https://raw.githubusercontent.com/lintsinghua/DeepAudit/main/docker-compose.prod.cn.yml | docker compose -f - up -d
|
|
||||||
# 镜像加速说明:
|
|
||||||
# - 原始地址:ghcr.io
|
|
||||||
# - 加速地址:ghcr.nju.edu.cn(南京大学开源镜像站)
|
|
||||||
|
|
||||||
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: ghcr.nju.edu.cn/lintsinghua/deepaudit-backend:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- backend_uploads:/app/uploads
|
|
||||||
- /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=ghcr.nju.edu.cn/lintsinghua/deepaudit-sandbox:latest
|
|
||||||
# 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=
|
|
||||||
- NO_PROXY=*
|
|
||||||
depends_on:
|
|
||||||
db:
|
|
||||||
condition: service_healthy
|
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
db-migrate:
|
|
||||||
condition: service_completed_successfully
|
|
||||||
networks:
|
|
||||||
- deepaudit-network
|
|
||||||
|
|
||||||
# 数据库迁移服务 - 在后端启动前自动执行
|
|
||||||
db-migrate:
|
|
||||||
image: ghcr.nju.edu.cn/lintsinghua/deepaudit-backend:latest
|
|
||||||
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: ghcr.nju.edu.cn/lintsinghua/deepaudit-frontend:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "3000:80"
|
|
||||||
environment:
|
|
||||||
# 禁用代理 - nginx 需要直连后端
|
|
||||||
- HTTP_PROXY=
|
|
||||||
- HTTPS_PROXY=
|
|
||||||
- http_proxy=
|
|
||||||
- https_proxy=
|
|
||||||
- NO_PROXY=*
|
|
||||||
depends_on:
|
|
||||||
- backend
|
|
||||||
networks:
|
|
||||||
- deepaudit-network
|
|
||||||
|
|
||||||
# 预拉取沙箱镜像(后端会按需调用)
|
|
||||||
sandbox-pull:
|
|
||||||
image: ghcr.nju.edu.cn/lintsinghua/deepaudit-sandbox:latest
|
|
||||||
restart: "no"
|
|
||||||
command: echo "Sandbox image ready"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
deepaudit-network:
|
|
||||||
driver: bridge
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
||||||
backend_uploads:
|
|
||||||
redis_data:
|
|
||||||
|
|
@ -36,7 +36,7 @@ services:
|
||||||
- deepaudit-network
|
- deepaudit-network
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: sl.vrgon.com:3000/zk_senlan/codereview:backend
|
image: sl.vrgon.com:3000/WuYanBo/codereview:backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- backend_uploads:/app/uploads
|
- backend_uploads:/app/uploads
|
||||||
|
|
@ -51,7 +51,7 @@ services:
|
||||||
- REDIS_URL=redis://redis:6379/0
|
- REDIS_URL=redis://redis:6379/0
|
||||||
- AGENT_ENABLED=true
|
- AGENT_ENABLED=true
|
||||||
- SANDBOX_ENABLED=true
|
- SANDBOX_ENABLED=true
|
||||||
- SANDBOX_IMAGE=sl.vrgon.com:3000/zk_senlan/codereview:sandbox
|
- SANDBOX_IMAGE=sl.vrgon.com:3000/WuYanBo/codereview:sandbox
|
||||||
# LLM 配置 - 请根据需要修改
|
# LLM 配置 - 请根据需要修改
|
||||||
- LLM_PROVIDER=${LLM_PROVIDER:-openai}
|
- LLM_PROVIDER=${LLM_PROVIDER:-openai}
|
||||||
- LLM_MODEL=${LLM_MODEL:-gpt-4o}
|
- LLM_MODEL=${LLM_MODEL:-gpt-4o}
|
||||||
|
|
@ -78,7 +78,7 @@ services:
|
||||||
|
|
||||||
# 数据库迁移服务 - 在后端启动前自动执行
|
# 数据库迁移服务 - 在后端启动前自动执行
|
||||||
db-migrate:
|
db-migrate:
|
||||||
image: sl.vrgon.com:3000/zk_senlan/codereview:backend
|
image: sl.vrgon.com:3000/WuYanBo/codereview:backend
|
||||||
restart: "no"
|
restart: "no"
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/deepaudit
|
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/deepaudit
|
||||||
|
|
@ -90,7 +90,7 @@ services:
|
||||||
- deepaudit-network
|
- deepaudit-network
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image: sl.vrgon.com:3000/zk_senlan/codereview:frontend
|
image: sl.vrgon.com:3000/WuYanBo/codereview:frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "83:80" # Nginx 监听 80 端口
|
- "83:80" # Nginx 监听 80 端口
|
||||||
|
|
@ -108,7 +108,7 @@ services:
|
||||||
|
|
||||||
# 预拉取沙箱镜像(后端会按需调用)
|
# 预拉取沙箱镜像(后端会按需调用)
|
||||||
sandbox-pull:
|
sandbox-pull:
|
||||||
image: sl.vrgon.com:3000/zk_senlan/codereview:sandbox
|
image: sl.vrgon.com:3000/WuYanBo/codereview:sandbox
|
||||||
restart: "no"
|
restart: "no"
|
||||||
command: echo "Sandbox image ready"
|
command: echo "Sandbox image ready"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue