对象存储切换 MinIO→RustFS: compose 服务换血(1.0.5/346MB,端口 19010·19011 沿用零改配置,RUSTFS_ACCESS_KEY/SECRET_KEY,healthcheck 双路径)+新增集成测试 TestStorage_RustFS_S3Compat(MakeBucket 幂等/Put/覆盖写全通,minio-go SDK 零改动兼容实证)+对账(techContext 技术栈/activeContext 遗留销账/CHANGELOG);动因=MinIO 社区版收费化,方案=换服务端不换客户端
This commit is contained in:
+11
-9
@@ -177,21 +177,23 @@ services:
|
||||
retries: 30
|
||||
start_period: 15s
|
||||
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2024-06-13T22-53-53Z
|
||||
container_name: go-sms-minio
|
||||
# ---- 2026-11-13 S1-B:MinIO 社区版收费化 → RustFS(Apache 2.0/S3 API 兼容)----
|
||||
# 宿主端口沿用 19010/19011,应用侧 config(minio.endpoint=127.0.0.1:19010)零改动;
|
||||
# 客户端仍为 minio-go SDK(Apache 2.0 通用 S3 客户端,与服务端解耦)。
|
||||
rustfs:
|
||||
image: rustfs/rustfs:1.0.5
|
||||
container_name: go-sms-rustfs
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MINIO_ROOT_USER: go-sms
|
||||
MINIO_ROOT_PASSWORD: go-sms123456
|
||||
command: ["server", "/data", "--console-address", ":9001"]
|
||||
RUSTFS_ACCESS_KEY: go-sms
|
||||
RUSTFS_SECRET_KEY: go-sms123456
|
||||
ports:
|
||||
- "19010:9000" # S3 API
|
||||
- "19011:9001" # Web Console
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
- rustfs-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
|
||||
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:9000/minio/health/live || curl -sf http://127.0.0.1:9001/ || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
@@ -243,5 +245,5 @@ volumes:
|
||||
redis-data:
|
||||
kafka-data:
|
||||
etcd-data:
|
||||
minio-data:
|
||||
rustfs-data:
|
||||
clickhouse-data:
|
||||
|
||||
Reference in New Issue
Block a user