feat: 完善服务端工程化、发布流程和自动化测试

This commit is contained in:
2026-07-16 08:36:12 +00:00
parent 0b71e8d024
commit 5d7aa560e5
29 changed files with 822 additions and 7987 deletions
+4 -2
View File
@@ -34,9 +34,10 @@ services:
MINIO_BUCKET: ${MINIO_BUCKET:?MINIO_BUCKET is required}
api:
# 开发/源码部署使用 build,从当前源码构建镜像;正式离线交付通常使用 docker-compose.image.yml 生成的包。
build:
context: ..
dockerfile: server/Dockerfile
context: .
dockerfile: Dockerfile
restart: unless-stopped
user: "${APP_UID:-1000}:${APP_GID:-1000}"
env_file:
@@ -59,6 +60,7 @@ services:
ports:
- "${SERVER_PORT:-8000}:8000"
volumes:
# 数据卷和密钥挂载在容器外,重建镜像或升级容器时不会丢失历史版本和授权数据。
- ./.env:/app/.env
- ./runtime:/data
- ./minio_data:/minio_data:ro