Docker 部署 minio
minio是分布式文件存储
一. minio的yaml部署 http版的
services:minio-http:command:- 'server /data --console-address :9001'container_name: minio-httpenvironment:- MINIO_ACCESS_KEY=username- MINIO_SECRET_KEY=qI7-****O6image: minio/minio:latest logging:driver: json-fileoptions:max-file: 10max-size: 50Mnetworks:- bridgeports:- 9300:9000/tcp- 9390:9001/tcprestart: alwaysvolumes:- /filestorage/9-9-TaskStorage/minio-http/data2:/data- /filestorage/9-9-TaskStorage/minio-http/config:/root/.minio networks:bridge:external: true
一. minio的yaml部署 https版的
证书位置:/root/.minio/certs
services:test-minio-ssl:command:- 'server /data --console-address :9001'container_name: test-minio-ssl environment:- MINIO_ACCESS_KEY=username- MINIO_SECRET_KEY=qI7-****O6 image: minio/minio:latest logging:driver: json-fileoptions:max-file: 10max-size: 5000Mnetworks:- 9-1-minio_mynetports:- 9200:9000/tcp- 9290:9001/tcprestart: alwaysvolumes:- /filestorage/9-1-minio/data:/data- /filestorage/9-1-minio/config:/root/.minio- /filestorage/9-1-minio/config/certs:/root/.minio/certs networks:9-1-minio_mynet:external: true
访问:http://localhost:9290/login
帐号密码在yaml配置的环境变量里面
end.