docker-compose 部署minio

1、创建文件夹

文件夹名称:
data
conf

当前目录结构如下:
.
├── conf
├── data
└── docker-compose.yml

2、docker-compose.yml 脚本

docker-compose 部署minio_第1张图片

version: '3'
services:
  minio:
    image: minio/minio:RELEASE.2022-09-07T22-25-02Z
    container_name: minio
    ports:
      - 9000:9000
      - 9001:9001
    volumes:
      - ./data:/data
      - ./conf:/root/.minio
    environment:
     MINIO_ACCESS_KEY: "minioadmin_yyy"
     MINIO_SECRET_KEY: "minioadmin_token"
    command: server /data --console-address ":9001" -address ":9000"
    restart: always

3、执行脚本

docker-compose up -d

4、展示

ps: 
	服务器记得放开9000/9001端口
	访问地址:服务器ip:9001

docker-compose 部署minio_第2张图片
docker-compose 部署minio_第3张图片

你可能感兴趣的:(docker,docker,服务器,运维)