Minio安装(Docker Compose方式)

docker-compose.yaml

yaml 复制代码
version: '3.7'
 
services:
  minio1:
    image: minio/minio:RELEASE.2025-02-28T09-55-16Z
    hostname: minio1
    container_name: minio1
    volumes:
      - /data/docker/minio/minio1/data:/data
      - /data/docker/minio/minio1/config:/root/.minio/ # 映射配置目录
    ports:
      - "9000:9000"
      - "8000:8000"
    environment:
      MINIO_ROOT_USER: minioadmin
      MINIO_ROOT_PASSWORD: minioadmin
      MINIO_BROWSER_REDIRECT_URL: http://主机ip:30080/minio/ui/
    command: server http://minio{1...4}/data --console-address ":8000"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3
 
  minio2:
    image: minio/minio:RELEASE.2025-02-28T09-55-16Z
    hostname: minio2
    container_name: minio2
    volumes:
      - /data/docker/minio/minio2/data:/data
      - /data/docker/minio/minio2/config:/root/.minio/ # 映射配置目录
    ports:
      - "9001:9000"
      - "8001:8000"
    environment:
      MINIO_ROOT_USER: minioadmin
      MINIO_ROOT_PASSWORD: minioadmin
      MINIO_BROWSER_REDIRECT_URL: http://主机ip:30080/minio/ui/
    command: server http://minio{1...4}/data --console-address ":8000"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3
 
  minio3:
    image: minio/minio:RELEASE.2025-02-28T09-55-16Z
    hostname: minio3
    container_name: minio3
    volumes:
      - /data/docker/minio/minio3/data:/data
      - /data/docker/minio/minio3/config:/root/.minio/ # 映射配置目录
    ports:
      - "9002:9000"
      - "8002:8000"
    environment:
      MINIO_ROOT_USER: minioadmin
      MINIO_ROOT_PASSWORD: minioadmin
      MINIO_BROWSER_REDIRECT_URL: http://主机ip:30080/minio/ui/
    command: server http://minio{1...4}/data --console-address ":8000"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3
 
  minio4:
    image: minio/minio:RELEASE.2025-02-28T09-55-16Z
    hostname: minio4
    container_name: minio4
    volumes:
      - /data/docker/minio/minio4/data:/data
      - /data/docker/minio/minio4/config:/root/.minio/ # 映射配置目录
    ports:
      - "9003:9000"
      - "8003:8000"
    environment:
      MINIO_ROOT_USER: minioadmin
      MINIO_ROOT_PASSWORD: minioadmin
      MINIO_BROWSER_REDIRECT_URL: http://主机ip:30080/minio/ui/
    command: server http://minio{1...4}/data --console-address ":8000"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3

拉取x86镜像

bash 复制代码
docker pull --platform linux/amd64 quay.io/minio/minio

导出离线镜像

bash 复制代码
docker save -o minio_image.docker quay.io/minio/minio

导入离线镜像

bash 复制代码
docker load -i minio_image.docker

启动

bash 复制代码
docker-compose up

参考

相关推荐
2401_8401922721 分钟前
k8s的StorageClass存储类和pv、pvc、provisioner、物理存储的链路
docker·容器·kubernetes
无情白23 分钟前
k8s运维面试总结(持续更新)
运维·面试·kubernetes
H1346948902 小时前
企业服务器备份软件,企业服务器备份的方法有哪些?
运维·服务器·负载均衡
塔能物联运维3 小时前
塔能科技:精准节能,擎动工厂可持续发展巨轮
大数据·运维
小王努力学编程4 小时前
【Linux系统编程】进程概念,进程状态
linux·运维·服务器·c++
小王不会写code4 小时前
Docker安装、配置Redis
redis·docker
liuliu03234 小时前
戴尔笔记本 ubuntu 22.04 开机后进入initramfs界面
linux·运维·ubuntu
RedCong5 小时前
如何在k8s中对接s3存储
云原生·容器·kubernetes
SDL大华5 小时前
【备忘】在Docker中安装宝塔面板,实现环境隔离,又能快速迁移服务器环境
服务器·docker·容器
DADIAN_GONG6 小时前
incomplete command on Huawei switch
linux·运维·华为