11volumes :
22 consuldata :
33 vaultdata :
4- miniodata :
4+ rustfsdata :
55 postgresdata :
66 redisdata :
77
@@ -56,10 +56,10 @@ services:
5656 restart : always
5757 command : ["/etc/docker/registry-local/config.yml"]
5858 environment :
59- REGISTRY_STORAGE_S3_ACCESSKEY : MINIOACCESSKEY
60- REGISTRY_STORAGE_S3_SECRETKEY : MINIOSECRETKEY
59+ REGISTRY_STORAGE_S3_ACCESSKEY : RUSTFSACCESSKEY
60+ REGISTRY_STORAGE_S3_SECRETKEY : RUSTFSSECRETKEY
6161 REGISTRY_STORAGE_S3_REGION : us-east-1
62- REGISTRY_STORAGE_S3_REGIONENDPOINT : http://minio :9000
62+ REGISTRY_STORAGE_S3_REGIONENDPOINT : http://rustfs :9000
6363 REGISTRY_STORAGE_S3_BUCKET : cabotage-registry
6464 REGISTRY_STORAGE_S3_SECURE : " true"
6565 REGISTRY_STORAGE_S3_V4AUTH : " true"
@@ -78,20 +78,27 @@ services:
7878 privileged : true
7979 volumes :
8080 - ./docker-compose/buildkitd:/home/user/.config/buildkit
81- minio :
82- image : minio/minio
83- entrypoint : sh
84- command : -c 'mkdir -p /export/cabotage-registry && /usr/bin/docker-entrypoint.sh server /export --console-address ":9001"'
85- restart : always
81+ rustfs :
82+ image : rustfs/rustfs
83+ command : --address :9000 --console-enable --server-domains rustfs /data
8684 environment :
87- MINIO_ROOT_USER : MINIOACCESSKEY
88- MINIO_ROOT_PASSWORD : MINIOSECRETKEY
89- MINIO_REGION : us-east-1
85+ RUSTFS_ACCESS_KEY : RUSTFSACCESSKEY
86+ RUSTFS_SECRET_KEY : RUSTFSSECRETKEY
87+ GLOBAL_REGION : us-east-1
9088 ports :
9189 - " 9000:9000"
9290 - " 9001:9001"
9391 volumes :
94- - miniodata:/export
92+ - rustfsdata:/data
93+ createbucket :
94+ image : minio/mc
95+ depends_on :
96+ - rustfs
97+ entrypoint : ["/bin/sh", "-c"]
98+ command :
99+ - |
100+ mc alias set rustfs http://rustfs:9000 RUSTFSACCESSKEY RUSTFSSECRETKEY
101+ mc mb --ignore-existing rustfs/cabotage-registry
95102 static :
96103 image : oven/bun:1-slim
97104 working_dir : /app
0 commit comments