docker-compose部署minio
时间: 2023-08-31 19:08:08 浏览: 245
docker-compose部署微服务
回答: 若要使用docker-compose部署minio,可以创建一个docker-compose.yml文件,并按照以下配置进行设置:
version: "3"
services:
minio:
image: minio/minio:latest
container_name: minio
ports:
- "9100:9000"
- "9090:9090"
volumes:
- "./data:/data"
environment:
- MINIO_ACCESS_KEY=admin
- MINIO_SECRET_KEY=admin123
command: server /data --console-address=":9000" --address=":9090"
logging:
driver: "json-file"
options:
max-size: "1m"
这个配置文件指定了minio镜像的版本、容器名称、端口映射、数据卷挂载、环境变量等参数。你可以根据自己的需求进行修改配置文件,然后使用docker-compose命令进行部署。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [minio文件服务器-docker docker-compose 搭建部署以及使用大全](https://blog.csdn.net/tianmingqing0806/article/details/126251506)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [docker-compose部署minio](https://blog.csdn.net/weixin_42202489/article/details/123201738)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文