Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Domain Configure for MinIO API

    Off-topic
    4
    6
    1216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • arshsahzad
      arshsahzad last edited by

      I have created a docker container in the local machine, able to access the MinIO console from the Internet using Nginx reverse proxy but when I'm sharing files from the MinIO console, the generated URL is local IP, which is not accessible from the internet

      minio.png

      How could the localhost can be mapped with the domain?

      arshsahzad BrutalBirdie 2 Replies Last reply Reply Quote 0
      • arshsahzad
        arshsahzad @arshsahzad last edited by

        below is my docker-compose and .env config

        version: "3.7"
        services:
          minio:
            image: minio/minio:latest
            container_name: minio-demo
            restart: unless-stopped
            ports:
              - 9000:9000
              - 9001:9001
            networks:
              - nginx
            volumes:
              - ./volume/minio:/data
            env_file:
              - ./ENV/minio.env
            command: server --console-address :9001 /data
            #command: server --address 0.0.0.0:9001 /data
        
        networks:
            nginx:   
        

        minio.env

        MINIO_SITE_REGION=india
        MINIO_SITE_NAME=minio-demo
        MINIO_ROOT_USER=minioadmin
        MINIO_ROOT_PASSWORD=miniopass
        MINIO_ETCD_ENDPOINTS=https://localhost:9001
        
        1 Reply Last reply Reply Quote 0
        • BrutalBirdie
          BrutalBirdie Staff @arshsahzad last edited by

          @arshsahzad Sorry this is not a general Docker and Networking HelpDesk.

          But here are some thoughts.

          able to access the MinIO console from the Internet using Nginx reverse proxy

          Clear this up please, did you test to access this via the internet or local net.

          Cloudron is showing the api url:
          a805bafb-962c-4672-b9e4-e3ced963a466-image.png

          You could use https://nip.io/ to test what the text shows when accessing your local IP via a Domain.

          Example: https://172.21.0.2.nip.io

          Like my work? Consider donating a beer 🍻 Cheers!

          arshsahzad 1 Reply Last reply Reply Quote 0
          • arshsahzad
            arshsahzad @BrutalBirdie last edited by

            I got the solution for configuring the domain in the MinIO docker container:

            Just make these changes in the mino.env

            MINIO_SITE_NAME=***
            MINIO_SITE_REGION=***
            MINIO_ROOT_USER=***
            MINIO_ROOT_PASSWORD=***
            MINIO_SERVER_URL=https://api.example.com
            MINIO_BROWSER_REDIRECT_URL=https://minio.example.com
            
            girish W 2 Replies Last reply Reply Quote 2
            • girish
              girish Staff @arshsahzad last edited by

              @arshsahzad indeed. BTW, you can also find such things from our packaging repo - https://git.cloudron.io/cloudron/minio-app . Those variables are set here - https://git.cloudron.io/cloudron/minio-app/-/blob/master/start.sh#L11

              1 Reply Last reply Reply Quote 2
              • W
                wjurry @arshsahzad last edited by

                @arshsahzad This solved my problem too. Thank you!

                1 Reply Last reply Reply Quote 0
                • Topic has been marked as a question  nebulon nebulon 
                • Topic has been marked as solved  nebulon nebulon 
                • First post
                  Last post
                Powered by NodeBB