Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

We currently support local storage and third-party storage. Let's give a detailed explanation on how to build and configure third-party storage minio. Please follow us to start a new journey!

...

Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

...

Install Minio

To deploy minio on Linux, you need to have some knowledge and skills of the Linux operating system, and here are some Linux infrastructures and popular Linux distributions that will be used.

  • Ubuntu 20.04 (LTS) Focal, Ubuntu Impish 21.10, Ubuntu 22.04 (LTS) Jammy

  • Docker 20.10 or higher.

  • IPv4/IPv6

  • Systemd

  • IP tables

  • Firewalld

It only supports 64-bit OS.

This document assumes that the Linux OS is already deployed and administrators of minio have been granted root permission to Linux.

Create a minio file storage path

Code Block
mkdir /opt/mino/data -p

Create minio certificate key file path

Code Block
mkdir /opt/mino/certs -p

3.Create a / opt/minio/docker-compose.yml file and save the following to the file

Code Block
version: "3.9"
services:
  minio:
    image: minio/minio:latest
    command: server /data  --address ":8892" --console-address ":8890" --certs-dir "/tmp/certs"
    container_name: minio
    ports:
      - "8892:8892"
      - "8890:8890"
    environment:
      - MINIO_ROOT_USER= [初始管理员账号]
      - MINIO_ROOT_PASSWORD= [初始管理员密码]
    volumes:
      - /opt/minio/data:/data
      - /opt/minio/certs:/tmp/certs
    healthcheck:
      test: ["CMD", "curl", "-f", "https://127.0.0.1:8890/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3
    restart: always

Note:

  • 8890 is the login port of the management background. The specific access address is https://webdomain:8890.

  • 8892 is the file access port, and the specific access address is https://webdomain:8892/bucket/file

  • MINIO_ROOT_USER and MINIO_ROOT_PASSWORD are the initial administrator account / password. Use this account to log in to the minio management backend after successful installation.

Store the server certificate file under the / opt/minio/certs path

Execute the docker installation minio instruction

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