MinIO Single Node Deployment
- The MinIO node requires Docker installation in advance.
- After Docker installation, execute the command
docker swarm initto initialize the swarm environment.
-
Download the image
- Server with Internet access
- Server without Internet access
docker pull registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-minio:RELEASE.2025-04-22T22-12-26Z# Offline image package download link. After downloading, upload it to the deployment server.https://pdpublic.mingdao.com/private-deployment/offline/mingdaoyun-minio-linux-amd64-RELEASE.2025-04-22T22-12-26Z.tar.gz# Load the offline image on the server using docker load -i commanddocker load -i mingdaoyun-minio-linux-amd64-RELEASE.2025-04-22T22-12-26Z.tar.gz -
Create configuration file and data storage directory
mkdir -p /usr/local/miniomkdir -p /data/minio/volume -
Create the MinIO configuration file
cat > /usr/local/minio/minio.yaml <<'EOF'version: '3'services:minio:image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-minio:RELEASE.2025-04-22T22-12-26Zenvironment:MINIO_ROOT_USER: "mingdao"MINIO_ROOT_PASSWORD: "123456789"volumes:- /usr/share/zoneinfo/Etc/GMT-8:/etc/localtime- /data/minio/volume:/data/storageports:- "9011:9000"# - "19111:9001" # Uncomment if MinIO console access is neededcommand: minio server /data/storage/data --console-address ":9001"EOF- The access key for object storage is specified by the
MINIO_ROOT_USERenvironment variable, which is a core credential. Please ensure to use a strong password during deployment. - The secret key for object storage is specified by the
MINIO_ROOT_PASSWORDenvironment variable, which is a critical security key. Please ensure to use a strong password during deployment.
- The access key for object storage is specified by the
-
Configure start and stop scripts
cat > /usr/local/minio/start.sh <<'EOF'docker stack deploy -c /usr/local/minio/minio.yaml minio --detach=falseEOFcat > /usr/local/minio/stop.sh <<'EOF'docker stack rm minioEOFchmod +x /usr/local/minio/start.shchmod +x /usr/local/minio/stop.sh -
Start the MinIO service
bash /usr/local/minio/start.sh -
Check the MinIO container status
docker stack ps minio