Minio

HOSTNAME IP
node1 192.168.2.11
node2 192.168.2.12

Docker

node1

  • docker-compose.yml

    services:
      minio:
        image: minio/minio:RELEASE.2024-06-13T22-53-53Z
        container_name: minio
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - /var/run/docker.sock:/var/run/docker.sock
          - /mnt/da/minio/data1:/data1
          - /mnt/db/minio/data2:/data2
        environment:
          - TZ=Asia/Shanghai
          - MINIO_ROOT_USER=minio
          - MINIO_ROOT_PASSWORD=minio
        command: server http://node-{1...2}/data{1...2} --console-address ":19000"
        network_mode: host
        restart: always
    
  • 启动

    docker compose -f docker-compose.yml up -d
    

node2

重复 node1