1
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?

More than 3 years have passed since last update.

さくっとテスト用のS3が欲しい。minioをdocker-composeで起動し、初期bucketがある状態を作る。

Last updated at Posted at 2020-12-16

多分これが一番速いと思います。
ディレクトリ配下に複数のディレクトリを配置するとそれがbucketになるのを使います。

docker-compose.yml
  s3:
    image: minio/minio
    volumes:
      - "./docker/s3:/s3"
    ports:
      - "9000:9000"
      - "9001:9001"
    environment:
      MINIO_ACCESS_KEY: test_key
      MINIO_SECRET_KEY: test_secret
    entrypoint: sh
    command: -c "mkdir -p /s3/bucket-test && /opt/bin/minio server --console-address ':9001' /s3"

http://localhost:9001/ にアクセスし、上記の key, secret でログインできることを確認する。

参考

1
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
1
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?