mirror of
https://github.com/lintsinghua/DeepAudit.git
synced 2026-09-24 23:23:44 +08:00
- Update project name from XCodeReviewer to DeepAudit in CI/CD workflows - Replace Docker image names and release artifact naming conventions - Update GitHub repository references in documentation files - Modify database names and container names in setup instructions - Update contributor badge and issue tracker links - Rename frontend logo file from logo_deepaudit.png - Update environment configuration examples and documentation - Rebrand all references in CONTRIBUTING.md, DISCLAIMER.md, and README.md - Update backend configuration and deployment documentation - Ensure consistent naming across frontend and backend configurations
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=deepaudit
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- deepaudit-network
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
volumes:
|
|
- backend_uploads:/app/uploads
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- ./backend/.env
|
|
environment:
|
|
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/deepaudit
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
|
networks:
|
|
- deepaudit-network
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- VITE_API_BASE_URL=http://localhost:8000/api/v1
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- deepaudit-network
|
|
|
|
networks:
|
|
deepaudit-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres_data:
|
|
backend_uploads:
|