Search code examples
pythondjangoamazon-s3storageminio

How can I get MINIO access and secret key?


I'm new to minio and I want to use it in a Django app, I read the documentation of minio python library and there is fields for MINIO_ENDPOINT, MINIO_ACCESS_KEY, MINIO_SECRET_KEY. I read the Quickstart documentation of minio but I didn't figure out how to find these parameters.


Solution

  • If you use docker:

    environment:
                MINIO_ROOT_USER: ${MINIO_ROOT_USER}
                MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
    

    Note that these two equivalent variables are now deprecated:

    MINIO_ACCESS_KEY[=MINIO_ROOT_USER]

    MINIO_SECRET_KEY[=MINIO_ROOT_PASSWORD]