1、Docker CE安装

参考:https://www.cnblogs.com/a120608yby/p/9883175.html

2、Docker Compose安装

参考:https://www.cnblogs.com/a120608yby/p/14582853.html

3、Minio部署

# vim docker-compose.yml 
version: '3.7'

x-minio-common: &minio-common
  image: quay.io/minio/minio:RELEASE.2024-03-15T01-07-19Z
  command: server --console-address ":9001" /data
  ports:
    - "9000:9000"
    - "9001:9001"
  environment:
    MINIO_ROOT_USER: minioadmin
    MINIO_ROOT_PASSWORD: minioadmin
  healthcheck:
    test: ["CMD", "mc", "ready", "local"]
    interval: 5s
    timeout: 5s
    retries: 5

services:
  minio:
    <<: *minio-common
    hostname: minio
    container_name: minio
    restart: always
    networks:
      - ops_default
    volumes:
      - ./data:/data

networks:
  ops_default:
    external: true

4、启动服务

docker compose up -d

5、查看服务状态

docker compose ps

6、访问

访问地址:http://部署主机IP:9001/
账号:minioadmin
密码:minioadmin

参考:

https://github.com/minio/minio/tree/master/docs/orchestration/docker-compose

  

posted on 2023-07-06 13:50  a120608yby  阅读(181)  评论(0编辑  收藏  举报