I am trying to create a default bucket in MiniO docker container with my local files uploaded as a default content.
I have written a simple docker-compose file to run Minio client:
version: "2.0"
services:
minio:
image: 'bitnami/minio:latest'
ports:
- '9000:9000'
- '9001:9001'
environment:
MINIO_ROOT_USER: user
MINIO_ROOT_PASSWORD: password
volumes:
- ~/test_data:/data
Inside the local folder test_data
, there is a folder named test_bucket
that contains 1 text file: question_list.txt
When I login to MiniO console in localhost:9001
, I managed to see a default bucket created named test_bucket
, but it is empty.
To double-check if the volume is mounted correctly, I looked inside the container with docker exec -it test-minio-1 /bin/bash
and I could find the question_list.txt
inside /data/test_bucket/
.
I don't know why the question_list.txt
is not showing up in MiniO console. I have tried to contact the developers in GitHub and it seems this is not possible.
I would like to ask if anyone faces similar issues and has a workaround, as for my actual use case, I will have GBs of local files that need to be used as default content inside the default bucket.
Thank you in advance for your constructive feedback.
minio/minio
andminio/mc
rather than the originalbitnami/minio
docker that I originally intended. – Dot