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

S3の替わりにminioを入れよう

Posted at

docker-compose.ymlの良きところへ以下を記述

  minio:
    container_name: "${COMPOSE_PROJECT_NAME}.${APP_ENV}.minio"
    image: "minio/minio:RELEASE.2022-06-25T15-50-16Z.fips"
    environment:
      MINIO_ROOT_USER: "asdfghjASDFGHJ"
      MINIO_ROOT_PASSWORD: "asdfghj1234567"
    entrypoint: "bash"
    command: '-c "/opt/bin/minio server /data --address :9000 --console-address :9001"'
    volumes:
      - "./s3/data:/data"
    ports:
      - "9000:9000"
      - "9001:9001"
    networks:
      - "backend"
.env
COMPOSE_PROJECT_NAME=test_project
APP_ENV=local
WEB_PORT=80

DIRは

プロジェクトDIR
│
└environments\local
       └local
           ├ s3
           │    └data
           ├.env
           └docker-compose.yml
0
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
0
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?