11 lines
514 B
Batchfile
11 lines
514 B
Batchfile
@echo off
|
|
rem MinIO Client (mc) helper — wraps the minio/mc container on the compose network.
|
|
rem Usage from the project root:
|
|
rem mc.cmd ls --recursive
|
|
rem mc.cmd ls invoices/
|
|
rem mc.cmd admin info local
|
|
rem
|
|
rem Uses `docker compose run` so it works regardless of the folder name
|
|
rem (the container joins the compose network and talks to the `minio` service).
|
|
docker compose run --rm --entrypoint /bin/sh minio-init -c "mc alias set local http://minio:9000 minioadmin minioadmin >/dev/null 2>&1 && mc %*"
|