Console Docker Compose
This compose file allows users to quickly deploy MinIO Console, LogSearch & Prometheus in a baremetal (non Kubernetes) environment.
Pre-requisites
- MinIO cluster up and running.
- mc configured for this MinIO cluster.
- Docker-Compose installed on the server.
Getting Started
-
Download the contents of
composedirectory on your machine. -
Edit the
prometheus.yamlfile and fill in the correct target (MinIO Endpoint). Optionally setup thebearer_tokenas explained here. -
Setup a console admin policy.
cat > admin.json << EOF
{
"Version": "2012-10-17",
"Statement": [{
"Action": [
"admin:*"
],
"Effect": "Allow",
"Sid": ""
},
{
"Action": [
"s3:*"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::*"
],
"Sid": ""
}
]
}
EOF
Then create this policy on MinIO server: mc admin policy add myminio consoleAdmin admin.json.
- Setup user and policy for Console
mc admin user add myminio console console123
mc admin policy set myminio consoleAdmin user=console
- Configure Webhook target on the MinIO server. Remember to change the
tokenvalue in below URL to the actual token value as set in the.envfile.
mc admin config set myminio audit_webhook:1 endpoint=http://localhost:8080/api/ingest?token=c6rkqjZ03ElEUKQ7MtSeYBJ8q_p3GDFPBQAQJlcbBLA=
mc admin service restart myminio
Configuration
To configure the Console Compose file to custom setup, please take a look at the .env file.