feat: 完成 Docker Compose 配置 (TASK-005)

- 创建 docker-compose.yml 定义三服务架构
- 创建 backend/Dockerfile (Python 3.12)
- 创建 frontend/Dockerfile (Node 20)
- 创建 .dockerignore 文件
- 验证配置语法正确
- 配置 healthcheck 和服务依赖

服务:
- postgres: PostgreSQL 15
- backend: FastAPI + uvicorn
- frontend: Next.js dev server

任务状态:TASK-005 已完成
下一步:TASK-006 后端核心配置

Assisted-by: Kiro AI <kiro@cursor.com>
This commit is contained in:
freedakgmail
2026-07-06 22:16:25 +08:00
parent 3ae54fe530
commit 0bb120ff6b
6 changed files with 153 additions and 9 deletions
+28
View File
@@ -0,0 +1,28 @@
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Next.js
.next/
out/
build/
# 环境变量
.env
.env.local
.env.*.local
# IDE
.vscode/
.idea/
*.swp
*.swo
# 测试
coverage/
# 其他
.DS_Store
*.pem
+18
View File
@@ -0,0 +1,18 @@
FROM node:20-alpine
WORKDIR /app
# 复制依赖文件
COPY package*.json ./
# 安装依赖
RUN npm ci
# 复制应用代码
COPY . .
# 暴露端口
EXPOSE 3000
# 启动开发服务器
CMD ["npm", "run", "dev"]