Docker部署Minio

文档地址:https://min.io/docs/minio/container/index.html

运行命令

sudo mkdir -p /mydata/services/minio/data
sudo mkdir -p /mydata/services/minio/config

sudo docker run  \
-p 9000:9000  \
-p 9001:9001  \
--name minio  \
-v /mydata/services/minio/data:/data  \
-v /mydata/services/minio/config:/root/.minio  \
-e "MINIO_ROOT_USER=minioadmin"  \
-e "MINIO_ROOT_PASSWORD=minioadmin"  \
-d quay.io/minio/minio server /data --console-address ":9001"

登录

http://localhost:9001/login 账密:minioadmin/minioadmin

创建bucket

设置bucket匿名可读

创建Access Keys

Access Key Policy中配置

{
 "Version": "2012-10-17",
 "Statement": [
  {
   "Effect": "Allow",
   "Action": [
    "admin:*"
   ]
  },
  {
   "Effect": "Allow",
   "Action": [
    "kms:*"
   ]
  },
  {
   "Effect": "Allow",
   "Action": [
    "s3:*"
   ],
   "Resource": [
    "arn:aws:s3:::fucloud/*"
   ]
  }
 ]
}

项目即可配置Access Key进行使用

posted @ 2024-05-13 14:06  fortuneju  阅读(58)  评论(0编辑  收藏  举报