Cannot open Minio in browser after dockerizing it in Spring Boot App

Published

I have a problem in opening minio in the browser. I just created Spring Boot app with the usage of it.

Here is my application.yaml file shown below.

server:
  port: 8085
spring:
  application:
    name: springboot-minio
minio:
  endpoint: http://127.0.0.1:9000
  port: 9000
  accessKey:  minioadmin #Login Account
  secretKey:  minioadmin # Login Password
  secure: false
  bucket-name: commons # Bucket Name
  image-size: 10485760 #  Maximum size of picture file
  file-size: 1073741824 #  Maximum file size

Here is my docker-compose.yaml file shown below.

version: '3.8'

services:
  minio:
    image: minio/minio:latest
    container_name: minio
    environment:
      MINIO_ROOT_USER: "minioadmin"
      MINIO_ROOT_PASSWORD: "minioadmin"
    volumes:
      - ./data:/data
    ports:
      - 9000:9000
      - 9001:9001

I run it by these commands shown below.

1 ) docker-compose up -d
2 ) docker ps -a
3 ) docker run minio/minio:latest

Here is the result shown below.

C:UsershostIdeaProjectsSpringBootMinio>docker run minio/minio:latest
NAME:
  minio - High Performance Object Storage

DESCRIPTION:
  Build high performance data infrastructure for machine learning, analytics and application data workloads with MinIO

USAGE:
  minio [FLAGS] COMMAND [ARGS...]

COMMANDS:
  server   start object storage server
  gateway  start object storage gateway

FLAGS:
  --certs-dir value, -S value  path to certs directory (default: "/root/.minio/certs")
  --quiet                      disable startup information
  --anonymous                  hide sensitive information from logging
  --json                       output server logs and startup information in json format
  --help, -h                   show help
  --version, -v                print the version

VERSION:
  RELEASE.2022-01-08T03-11-54Z

When I write 127.0.0.1:9000 in the browser, I couldn’t open the MinIo login page.

How can I fix my issue?

Source: Docker Questions

Published
Categorised as docker, minio, spring-boot Tagged , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq