初始提交:项目基础结构

- backend: FastAPI 后端服务 (Python)
- frontend: React + Tauri 前端应用
- docker-compose.yml: 容器编排配置
This commit is contained in:
2026-08-04 10:05:59 +08:00
commit 17105dc9c2
61 changed files with 3633 additions and 0 deletions

27
docker-compose.yml Normal file
View File

@ -0,0 +1,27 @@
# ============================================================
# 生产流转管理系统 — PostgreSQL 15 + pgvector
# 独立于老系统数据库,通过逻辑外键关联 user / material
# ============================================================
services:
track_db_prod:
image: pgvector/pgvector:pg15
container_name: track_db_prod
restart: unless-stopped
environment:
POSTGRES_USER: track
POSTGRES_PASSWORD: track_prod_2026
POSTGRES_DB: track_production
ports:
- "5433:5432" # 避开老系统 5432 端口
volumes:
- track_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U track -d track_production"]
interval: 10s
timeout: 5s
retries: 5
volumes:
track_pgdata:
name: track_pgdata