Docker-compose 部署 Minio


编写 docker-compose

version: '3'
services:
  minio:
    image: minio/minio:latest
    ports:
      - 9000:9000
      - 9001:9001
    environment:
      - MINIO_ROOT_USER=minio
      - MINIO_ROOT_PASSWORD=Hncht@Minio
    volumes:
      - ./data:/data
      - ./conf:/root/.minio/
    command: server --console-address ':9001' /data
    restart: always

启动服务

docker-compose up -d

评论已关闭