Minio

version: '3.8' services: minio: image: minio/minio:RELEASE.2025-09-07T16-13-09Z-cpuv1 container_name: minio environment: - MINIO_ROOT_USER=admin - MINIO_ROOT_PASSWORD=admin123 ports: - "9999:9000" - "9991:9001" volumes: - minio_data:/data command: server /data --console-address ':9001' restart: unless-stopped minio_mc: image: minio/mc:RELEASE.2025-08-13T08-35-41Z-cpuv1 container_name: minio_mc depends_on: - minio entrypoint: > sh -c " until mc alias set myminio http://minio:9000 admin admin123; do echo 'Waiting for MinIO...'; sleep 2; done; mc admin user add myminio your_access_key your_secret_key 2>/dev/null || echo 'User already exists'; mc mb -p myminio/mybucket; mc admin policy attach myminio readwrite --user=your_access_key 2>/dev/null || mc admin policy set myminio readwrite user=your_access_key; echo '=== MinIO Credentials ==='; echo 'Endpoint: http://localhost:9999'; echo 'Console: http://localhost:9991'; echo 'Access Key: your_access_key'; echo 'Secret Key: your_secret_key'; echo 'Bucket: mybucket'; echo '========================'; exit 0 " restart: on-failure volumes: minio_data: