Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save taking/2a3187314de95fde16f7382a3509aa7c to your computer and use it in GitHub Desktop.
Save taking/2a3187314de95fde16f7382a3509aa7c to your computer and use it in GitHub Desktop.

minio Installation with Docker Compose

  • minio on Docker

Prerequisites

  • Docker

.env

DOCKER_ROOT=/volume/HDD_02/minio

TZ=Asia/Seoul

# DB
MINIO_ROOT_USER={minioUserName}
MINIO_ROOT_PASSWORD={minioUserPassword}
#MINIO_DISTRIBUTED_MODE_ENABLED=yes
#MINIO_DISTRIBUTED_NODES=minio1,minio2,minio3,minio4
MINIO_SKIP_CLIENT=yes

docker-compose.yml

version: '2'

services:
  minio:
    image: quay.io/minio/minio:RELEASE.2023-07-18T17-49-40Z
    #command: server /data1 /data2 /data3 /data4 --console-address ":9001"
    command: server /data --console-address ":9001"
    restart: always
    container_name: minio
    env_file: ./.env
    ports:
      - '9000:9000'
      - '9001:9001'
    shm_size: '1gb'
    volumes:
      - $DOCKER_ROOT/minio_data:/data
      #- '/volume/HDD_02/minio:/data2'
      #- '/volume/HDD_03/minio:/data3'
      #- '/volume/HDD_04/minio:/data4'
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment