3 Minio Configuration
deon edited this page 2024-10-23 05:28:16 +00:00

Setting up minio

The minio documentation is here if you want to learn more about it.

Some minio defaults that you can change if you want:

Attribute Default Description
Username minioadmin Default admin user name, it can be changed by starting the container with a variable MINIO_ROOT_USER
Password minioadmin Default admin password, it can be changed by starting the container with a variable MINIO_ROOT_PASSWORD
Admin Port 9001 This port provides a web UI interface to minio so you can administer it. Dont make this available outside your network.

NOTE:

  • The settings we used on the installation page makes web UI port available from the host. So you should be able to go to http://[HOST]:9001 and login with the admin username/password. (Where HOST is the hostname (or IP address) to your machine running hosting the clrghouz containers.)

Setup for clrghouz

Create a bucket to store files

Run this command:

> docker exec -it clrghouz-minio-1 mc mb /data/clrghouz
Bucket created successfully `/data/clrghouz`.

Create a token to access minio

We need to create a token and secret for our [MINIO_ACCESS_KEY] and [MINIO_SECRET_KEY] as mentioned on Installation.

The easiest way to do that is

  1. Login to the minio web UI http://[HOST]:9001 (where [HOST] is the hostname or IP address of the host running the clrghouz containers), using the details defined above. 2. Select Access Keys from the left
  2. Select + Create access key on the right
  3. Press Create
  4. Record the presented details in your .env file:
    • Replace the Access Key [MINIO_ACCESS_KEY] with the created Access Key (its the value for AWS_ACCESS_KEY_ID)
    • Replace the Secret Key [MINIO_SECRET_KEY] with the created Secret Key (its the value for AWS_SECRET_ACCESS_KEY)