美文网首页
docker部署minio

docker部署minio

作者: 架构师与哈苏 | 来源:发表于2020-08-04 20:10 被阅读0次

    快速部署

    docker run -p 9000:9000 --name myminio \
      -e "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE" \
      -e "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" \
      -v /mnt/data:/data \
      -v /mnt/config:/root/.minio \
      minio/minio server /data
    

    docker-compose.yml

    version: '3'
    services:
      minio:
        image: minio/minio:latest
        container_name: myminio
        ports:
          - 9000:9000
        volumes:
          - /var/minio/data:/data
          - /var/minio/config:/root/.minio
        environment:
          MINIO_ACCESS_KEY: "root"
          MINIO_SECRET_KEY: "password"
        command: server /data
        restart: always
        
        
    

    相关文章

      网友评论

          本文标题:docker部署minio

          本文链接:https://www.haomeiwen.com/subject/aofgrktx.html