Skip to content

MinIO

Installation

Please remember to adjust all usernamen, secrets and paths when you copy from those examples.

Docker

Example:

s3:
  image: minio/minio
  command: server /data --console-address ":9001"
  environment:
    MINIO_BROWSER_LOGIN_ANIMATION: off
    MINIO_ROOT_USER: some_username
    MINIO_ROOT_PASSWORD: some_secret
  labels:
    - traefik.enable=true
    - traefik.http.routers.minio.tls=true
    - traefik.http.routers.minio.entrypoints=https
    - traefik.http.services.minio.loadbalancer.server.port=9001
    - traefik.http.routers.minio.rule=Host(`s3.${DOMAINNAME}`)
  ports:
    - 9000:9000
    - 9001:9001
  volumes:
    - data-s3:/data

Windows

Official documentation can be found here.

The following is an extract from the official documentation with updated URLs for the provided downloads of winsw.

winsw is a wrapper to run any executable as an Windows service

  • Download WinSW.NET4.exe
  • Rename the WinSW.NET4.exe to minio-service.exe
  • Create a xml file minio-service.xml insert the configuration below
  • Open a cmd as Administrator and execute minio-service.exe install
<service>
  <id>MinIO</id>
  <name>MinIO</name>
  <description>MinIO is a high performance object storage server</description>
  <executable>minio.exe</executable>
  <env name="MINIO_ROOT_USER" value="some_username"/>
  <env name="MINIO_ROOT_PASSWORD" value="some_secret"/>
  <arguments>server X:\Insight\...\minio</arguments>
  <logmode>rotate</logmode>
</service>

Initial Setup

Access the MinIO console at http://localhost:9001 and login with the previously provided credentials.

Note: the provided usernamen & password are only used to access the MinIO console, they do count as an identity inside MinIO.

Note: Default username & password are minioadmin

Various components of Insight need access to MinIO. The part around configurations & library needs read & write access, whereas the middleware only needs readonly access.

For each usage an identity must be created Both usages will be provide through one identity with two access_keys, one for each.

MinIO supports various sources for identities, this example will create a local identiy.

Create Identity for Insight Middleware (readonly)

  • Access the MinIO console with a browser
  • Navigate to Identitiy & Users
  • Click Create User
  • enter a username & password
  • assign policies:
    • readonly
  • Click on Save

Create Access Key for Insight Middleware

  • Select the newly created user in Identity/Users
  • Select Service Accounts
  • Click Create Access Key
  • securely store Access Key and `Secret Key
  • as name provide Insight Middleware

Create Identity for Insight Configuration (readwrite)

  • Access the MinIO console with a browser
  • Navigate to Identitiy & Users
  • Click Create User
  • enter a username & password
  • assign policies:
    • readwrite
  • Click on Save

Create Access Key for Insight Configurations

  • Select the newly created user in Identity/Users
  • Select Service Accounts
  • Click Create Access Key
  • securely store Access Key and `Secret Key
  • as name provide Insight Configurations