密码和KEY至少8位数
Docker Compose 伪分布式部署
version: '3.8'
services:
minio1:
image: minio/minio
ports:
- '9010:9000'
- '9011:9001'
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=minio123456789
volumes:
- './data/minio1-1:/data1'
- './data/minio1-2:/data2'
command: server --console-address ":9001" http://minio{1...2}/data{1...2}
minio2:
image: minio/minio
ports:
- '9020:9000'
- '9021:9001'
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=minio123456789
volumes:
- './data/minio2-1:/data1'
- './data/minio2-2:/data2'
command: server --console-address ":9001" http://minio{1...2}/data{1...2}