- 新增后台登录图形验证码功能,完善登录安全防护 - 新增登录rememberMe参数,控制Refresh Token的会话持久化策略 - 实现OSS私有桶媒体URL自动签名,统一处理图片资源的临时访问签名 - 新增素材库数据库表与上传API,规范媒体资源管理流程 - 统一前端UI图标使用@element-plus/icons-vue,重构布局图标组件 - 登录页新增验证码输入、刷新功能,添加账号记忆与记住密码逻辑 - 更新全套文档,补充API契约、技术决策记录与集成流程说明 - 修复多个业务页面的图标展示问题,新增认证流程相关测试用例
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
services:
|
|
api:
|
|
build: .
|
|
container_name: wonderq-admin-api
|
|
restart: unless-stopped
|
|
environment:
|
|
DATABASE_URL: postgresql://miniapp:miniapp_dev_password@postgres:5432/miniapp
|
|
JWT_SECRET: replace-with-a-long-random-secret-before-production
|
|
REDIS_URL: redis://redis:6379/0
|
|
PORT: 4000
|
|
LOG_LEVEL: info
|
|
OSS_ACCESS_KEY_ID: ${OSS_ACCESS_KEY_ID:-}
|
|
OSS_ACCESS_KEY_SECRET: ${OSS_ACCESS_KEY_SECRET:-}
|
|
OSS_ENDPOINT: ${OSS_ENDPOINT:-}
|
|
OSS_BUCKET_NAME: ${OSS_BUCKET_NAME:-}
|
|
ports:
|
|
- "4000:4000"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://localhost:4000/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: wonderq-admin-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: miniapp
|
|
POSTGRES_USER: miniapp
|
|
POSTGRES_PASSWORD: miniapp_dev_password
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- miniapp-postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U miniapp -d miniapp"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: wonderq-admin-redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6380:6379"
|
|
|
|
volumes:
|
|
miniapp-postgres-data:
|