2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【minIO】Docker起動時>Access:PRIVATEの解決【Tips】

Posted at

minIO.png
ちょっとしたTips。Macのlocalhost前提

(例)docker-compose.yaml

services:
  minio:
    image: minio/minio:latest
    container_name: minio
    ports:
      - "9000:9000" //API
      - "9001:9001" //WebUI
    environment:
      MINIO_ROOT_USER: my-user
      MINIO_ROOT_PASSWORD: my-password
    command: server /data --console-address ":9001"
    restart: unless-stopped

docker compose up -d で起動直後、パス指定するだけだと見えない。

mc を入れる

% brew install minio/stable/mc
% mc --version

エイリアスをセット

ポート番号、ID/PASS はプロジェクトに応じて変わります。

% mc alias set local http://localhost:{PORT} {ID} {PASS}
% mc alias set local http://localhost:9000 my-user my-password

匿名アクセスを許可

BUCKET_NAMEは、minIO側に作ったBUCKETです。

% mc anonymous set download local/{BUCKET_NAME}
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?