背景:本地 PG/Redis 已按要求复用 docker-postgres-1 / docker-redis-1; S3 容器按用户要求删除,后续接入公网自建 RustFS。 改动: - 删除 infra/docker-compose.dev.yaml、infra/compose.dev.yaml - 移除 compose:up / compose:down 脚本,改用 check:dev 预检本机 PG/Redis - 新增 scripts/check-dev-deps.mjs;.env.example 的 S3_* 改为待填 - README / AGENTS / A0 报告同步本地依赖与对象存储说明 影响面:本地开发依赖与 CI 本地脚本、环境变量样例、文档。 回滚方式:恢复被删除的两个 compose 文件与 package.json 脚本即可。 验证:format:check、lint、pnpm ci:local(含 e2e 4/4)全部通过,用时 106.3s。
This commit is contained in:
1 parent
620cb93a46
commit
5628e158c0
9 files changed
+85
-57
No files matched your search
@@ -1,4 +0,0 @@
|
||||
# 技术架构 §4.1.1 引用的路径为 infra/compose.dev.yaml,这里做 include 兼容。
|
||||
# 实际定义在 infra/docker-compose.dev.yaml(开发计划 §6.1 与工程规范 README 的命名)。
|
||||
include:
|
||||
- docker-compose.dev.yaml
|
||||
@@ -1,33 +0,0 @@
|
||||
# 灵犀 · 本地开发对象存储(S3 协议兼容)
|
||||
# 用法:pnpm compose:up / pnpm compose:down
|
||||
#
|
||||
# 数据库与 Redis 复用本机已有 Docker 服务,不再由本文件创建:
|
||||
# PostgreSQL → docker-postgres-1,127.0.0.1:5432,库 lingxi / 用户 postgres / 密码 postgres
|
||||
# Redis → docker-redis-1,127.0.0.1:6379
|
||||
# 本文件只管理 S3 兼容服务:2026-11 实测 minio/minio 与 minio/mc 镜像在当前网络不可拉取,
|
||||
# 本地改用 Adobe S3Mock 提供 assets/renders/temp/archive 四个桶;接入真实 MinIO 时仅替换本服务。
|
||||
name: lingxi-dev
|
||||
|
||||
services:
|
||||
s3:
|
||||
image: adobe/s3mock:latest
|
||||
container_name: lingxi-s3
|
||||
environment:
|
||||
COM_ADOBE_TESTING_S3MOCK_STORE_INITIAL_BUCKETS: assets,renders,temp,archive
|
||||
COM_ADOBE_TESTING_S3MOCK_STORE_REGION: us-east-1
|
||||
COM_ADOBE_TESTING_S3MOCK_STORE_ROOT: /s3mockroot
|
||||
COM_ADOBE_TESTING_S3MOCK_STORE_RETAIN_FILES_ON_EXIT: 'true'
|
||||
ports:
|
||||
- '19000:9090'
|
||||
- '19001:9191'
|
||||
volumes:
|
||||
- lingxi-s3-data:/s3mockroot
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'wget -q -O /dev/null http://127.0.0.1:9090/ || exit 1']
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
start_period: 20s
|
||||
|
||||
volumes:
|
||||
lingxi-s3-data:
|
||||
Reference in new issue
Block a user