Start by creating a .env
file to define your MinIO credentials. This file should contain the following variables:
MINIO_ROOT_USER=user
MINIO_ROOT_PASSWORD=password
Note: Replace user
and password
with the credentials you want to use for accessing MinIO. These values will be set in your .env
file.
To begin, create a custom bridge network for Docker:
docker network create --driver bridge minio-network
Once the network is created, you can start Docker with the following command, which will also rebuild any containers if necessary:
docker compose up --build
Once Docker is up and running, you can access the MinIO WebUI. Open your browser and go to:
http://localhost:9001
Use the credentials you specified in the .env
file (i.e., MINIO_ROOT_USER
for the username and MINIO_ROOT_PASSWORD
for the password) to log in to MinIO's WebUI.
After logging in, you'll be able to create your first bucket to store data. Follow these steps:
- In the MinIO WebUI, click on the "Create Bucket" button.
- Give your bucket a unique name.
- Click "Create" to finalize the process.