1、Docker CE安装
参考:https://www.cnblogs.com/a120608yby/p/9883175.html
2、Docker Compose安装
参考:https://www.cnblogs.com/a120608yby/p/14582853.html
3、Minio部署
# 编辑docker-compose.yaml # vim docker-compose.yaml version: '3.7' # Settings and configurations that are common for all containers x-minio-common: &minio-common image: quay.io/minio/minio:RELEASE.2023-04-07T05-28-58Z command: server --console-address ":9001" http://minio{1...4}/data{1...2} expose: - "9000" - "9001" environment: MINIO_ROOT_USER: minioadmin MINIO_ROOT_PASSWORD: minioadmin healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 30s timeout: 20s retries: 3 # starts 4 docker containers running minio server instances. # using nginx reverse proxy, load balancing, you can access # it through port 9000. services: minio1: <<: *minio-common hostname: minio1 volumes: - data1-1:/data1 - data1-2:/data2 minio2: <<: *minio-common hostname: minio2 volumes: - data2-1:/data1 - data2-2:/data2 minio3: <<: *minio-common hostname: minio3 volumes: - data3-1:/data1 - data3-2:/data2 minio4: <<: *minio-common hostname: minio4 volumes: - data4-1:/data1 - data4-2:/data2 nginx: image: nginx:1.19.2-alpine hostname: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro ports: - "9000:9000" - "9001:9001" depends_on: - minio1 - minio2 - minio3 - minio4 ## By default this config uses default local driver, ## For custom volumes replace with volume driver configuration. volumes: data1-1: data1-2: data2-1: data2-2: data3-1: data3-2: data4-1: data4-2: # 启动服务 docker compose up -d # 查看服务状态 docker compose ps
4、访问
访问地址:http://部署主机IP:9001/ 账号:minioadmin 密码:minioadmin
参考:https://github.com/minio/minio/tree/master/docs/orchestration/docker-compose
https://min.io/docs/minio/container/index.html
标签:compose,minio,minioadmin,Rocky,common,https,Linux,docker,Minio From: https://www.cnblogs.com/a120608yby/p/17307128.html