version:'3.7'# starts 4 docker containers running minio server instances. Each# minio server's web interface will be accessible on the host at port# 9001 through 9004.services:minio1:image:minio/minio:RELEASE.2020-01-16T22-40-29Zcontainer_name:minio1volumes:- data1-1:/data1- data1-2:/data2ports:- "9001:9000"environment:MINIO_ACCESS_KEY:minioMINIO_SECRET_KEY:minio123command:server http://minio{1...4}/data{1...2}healthcheck:test:["CMD","curl","-f","http://localhost:9000/minio/health/live"]interval:30stimeout:20sretries:3minio2:image:minio/minio:RELEASE.2020-01-16T22-40-29Zcontainer_name:minio2volumes:- data2-1:/data1- data2-2:/data2ports:- "9002:9000"environment:MINIO_ACCESS_KEY:minioMINIO_SECRET_KEY:minio123command:server http://minio{1...4}/data{1...2}healthcheck:test:["CMD","curl","-f","http://localhost:9000/minio/health/live"]interval:30stimeout:20sretries:3minio3:image:minio/minio:RELEASE.2020-01-16T22-40-29Zcontainer_name:minio3volumes:- data3-1:/data1- data3-2:/data2ports:- "9003:9000"environment:MINIO_ACCESS_KEY:minioMINIO_SECRET_KEY:minio123command:server http://minio{1...4}/data{1...2}healthcheck:test:["CMD","curl","-f","http://localhost:9000/minio/health/live"]interval:30stimeout:20sretries:3minio4:image:minio/minio:RELEASE.2020-01-16T22-40-29Zcontainer_name:minio4volumes:- data4-1:/data1- data4-2:/data2ports:- "9004:9000"environment:MINIO_ACCESS_KEY:minioMINIO_SECRET_KEY:minio123command:server http://minio{1...4}/data{1...2}healthcheck:test:["CMD","curl","-f","http://localhost:9000/minio/health/live"]interval:30stimeout:20sretries:3## By default this config uses default local driver,## For custom volumes replace with volume driver configuration.volumes:data1-1:data1-2:data2-1:data2-2:data3-1:data3-2:data4-1:data4-2:
// minio/cmd/bootstrap-peer-server.go
func(b*bootstrapRESTServer)VerifyHandler(whttp.ResponseWriter,r*http.Request){ctx:=newContext(r,w,"VerifyHandler")cfg:=getServerSystemCfg()logger.LogIf(ctx,json.NewEncoder(w).Encode(&cfg))}// minio/cmd/bootstrap-peer-server.go
funcgetServerSystemCfg()ServerSystemConfig{envs:=env.List("MINIO_")envValues:=make(map[string]string,len(envs))for_,envK:=rangeenvs{// skip certain environment variables as part
// of the whitelist and could be configured
// differently on each nodes, update skipEnvs()
// map if there are such environment values
if_,ok:=skipEnvs[envK];ok{continue}envValues[envK]=env.Get(envK,"")}returnServerSystemConfig{MinioEndpoints:globalEndpoints,MinioEnv:envValues,}}