77services :
88 # RustFS - S3-compatible object storage (Tier 1)
99 rustfs :
10- image : rustfs/rustfs:latest
11- container_name : rc-test- rustfs
10+ image : rustfs/rustfs:1.0.0-alpha.80
11+ container_name : rustfs
1212 ports :
1313 - " 9000:9000" # S3 API
1414 - " 9001:9001" # Console
1515 environment :
16- RUSTFS_ROOT_USER : accesskey
17- RUSTFS_ROOT_PASSWORD : secretkey
16+ RUSTFS_ROOT_USER : rustfsadmin
17+ RUSTFS_ROOT_PASSWORD : rustfsadmin
1818 RUSTFS_VOLUMES : /data
1919 RUSTFS_ADDRESS : " :9000"
2020 RUSTFS_CONSOLE_ENABLE : " true"
2121 RUSTFS_CONSOLE_ADDRESS : " :9001"
2222 volumes :
2323 - rustfs-data:/data
2424 healthcheck :
25- test : ["CMD", "curl", "-sf", "http://localhost :9000/minio/ health/live "]
25+ test : ["CMD", "curl", "-sf", "http://127.0.0.1 :9000/health"]
2626 interval : 10s
2727 timeout : 5s
2828 retries : 5
@@ -32,18 +32,17 @@ services:
3232
3333 # Initialize RustFS - create test buckets using mc client
3434 rustfs-init :
35- image : quay.io/minio/mc :latest
36- container_name : rc-test-rustfs- init
35+ image : rustfs/rc :latest
36+ container_name : rc-init
3737 depends_on :
38- rustfs :
39- condition : service_healthy
38+ - rustfs
4039 entrypoint : >
4140 /bin/sh -c "
42- mc alias set local http://rustfs:9000 accesskey secretkey ;
43- mc mb local /test-bucket --ignore-existing ;
44- mc mb local /another-bucket --ignore-existing ;
41+ until (/usr/bin/rc alias set rustfs http://rustfs:9000 rustfsadmin rustfsadmin) do echo '...waiting...' && sleep 1; done ;
42+ /usr/bin/rc mb rustfs /test-bucket;
43+ /usr/bin/rc mb rustfs /another-bucket;
4544 echo 'RustFS initialization complete';
46- exit 0;
45+ tail -f /dev/null
4746 "
4847 networks :
4948 - rc-test-network
0 commit comments