Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

To work with MinIO from a local PC, either to correct a bug or to add new functionality, it is necessary to deploy:

  • MiniIO server.

  • Unprivileged MinIO user navigation console.

  • MinIO Admin Console.

  • NGINX to access MinIO by HTTPs protocol from the platform’s control panel.

From release 3.2.2, a docker-compose is provided to facilitate this task, so that it is possible to start everything with Docker in an integrated way.

The MinIO docker-compose is located within the platform source code at:

onesait-cloud-platform/devops/buil-deploy/docker/modules/minio

Before starting the MinIO services on the local PC, two things need to be configured:

  • etc/hosts file to be able to access the MinIO services from the local control-panel via HTTPs: Within the MinIO docker-compose, an NGINX is created by secure protocol on port 443. That NGINX is configured with a self-signed certificate for the hostname devonesaitplatform.com, which will have to resolve to the IP of our own PC, which is where the MinIO services will be running. So, in the etc/hosts file, we have to create the following entries:

  • Configure in NGINX the redirection to the control-panel of our local machine. To do this, we have to edit the file onesait-cloud-platform/devops/buil-deploy/docker/modules/minio/nginx/conf.d/default.conf and change the IP of the proxy_pass to the control-panel to our own IP:

Once configured, it is possible to start and stop the MinIO services locally by:

  • docker-compose up -d

  • docker-compose down

Examining the docker-compose file, we can see that we have mapped the MinIO service to port 9000 of our machine, and the services of the MinIO consoles would be redirected from NGINX.

As of version 3.2.2, we provide the configured config-init to be able to use the docker-compose configuration. If a previous version of the platform is used, we need to edit the Endpoint Modules configuration, in the section corresponding to MinIO, to leave it as follows:

minio: 
      base: http://localhost:9000
      admin:
         internal: https://minio-console.devonesaitplatform.com
         external: https://minio-console.devonesaitplatform.com
      browser:
         internal: https://minio-browser.devonesaitplatform.com
         external: https://minio-browser.devonesaitplatform.com
      cookiedomain: devonesaitplatform.com

A known problem is that the first time MinIO is accessed from the control-panel, it does not load correctly, and the iframe where it should load shows an error. This is due to the self-signed certificate. To correct this, you would have to open the url minio-browser.devonesaitplatform.com in another browser window, and add the exception to the certificate. From that moment on, the screen will be loaded correctly.

Once started, you have to enter the Controlpanel through the balancer: https://devonesaitplatform.com/controlpanel

  • No labels