- Install Minio server
See this page.
You should install both the server and the mc
CLI client.
For a local deployment the storage server's S3 endpoint is http://127.0.0.1:9000
You can alias it as local
:
mc alias set local http://127.0.0.1:9000 minioadmin minioadmin
mc admin info local
note: the objects browser UI is also available on
http://127.0.0.1:9001
.
- Create credentials
mc admin accesskey create local
The result should look like:
Access Key: <a random access key>
Secret Key: <a random secret key>
Expiration: NONE
Name:
Description:
- Create a
test
bucket
mc mb local/test
- Review the
MINIO_CONFIG
system param to comply with your Minio server configuration
The default value of the system parameter is using the follwoing environment variables:
MINIO_ENDPOINT
: API endpoint (e.g.http://127.0.0.1:9000
)MINIO_BUCKET
: bucket name (e.g.test
)MINIO_ACCESSKEY
andMINIO_SECRETKEY
: credentials
Add the minio
service to you docker-compose.yml
:
services:
minio:
image: quay.io/minio/minio:latest
command: [ "server" ]
ports:
- 127.0.0.1:9000:9000
volumes:
- <your host volume spec>:/data
Create the credentials and the bucket locally using the mc
CLI
(once done you can remove the 9000
port mapping)
and add the following environment variabled to your simplicite
service:
environment:
MINIO_ENDPOINT: "http://minio:9000"
MINIO_BUCKET: "<your bucket name, e.g. test>"
MINIO_ACCESSKEY: "<your access key>"
MINIO_SECRETKEY: "<your secret key>"
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
minioTstCode |
char(50) | yes* | yes | - | |
minioTstLabel |
char(255) | yes | - | ||
minioTstDocument |
document | yes | - |