version: "3.7"
services:
minio:
image: minio/minio:RELEASE.2022-08-02T23-59-16Z
privileged: true
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- /root/docker/minio/data1:/data1
- /root/docker/minio/data2:/data2
command: server --console-address ":9001" http://minio/data{1...2}
environment:
- MINIO_ROOT_USER=root
- [email protected]
#- MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
#- MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
docker-compose up -d