Docker-compose builds MinIO (stand-alone deployment)
1. Directory structure
.
└── docker_minio
├── docker-compose.yml
└── minio
└── data1
2. docker-compose.yml
version: '3.5'
services:
minio:
image: minio/minio
container_name: minio
ports:
- "19000:9000"
- "19001:9001"
volumes:
- "./minio/data1:/data"
command: server --console-address ":9001" /data
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123456
- MINIO_ACCESS_KEY=briXF4NLf850dKii
- MINIO_SECRET_KEY=x7DPW8exf6enLbBTzvVfOhHSjzue7bpZ
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
network_mode: "bridge"
restart: always
3. Create db folder
Directory and file screenshots are as follows
4. Start the service
# 进入docker_minio目录下
cd /系统目录/docker_minio
# 启动服务
docker compose up -d
Remark
- minio login page: http://ip:19001/login
- The main interface after minio login