File size: 1,207 Bytes
5484978
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Run MinIO for local object storage: docker compose up -d minio
# Console: http://localhost:9001 (minioadmin / minioadmin unless you set MINIO_ROOT_*)
#
# License (MinIO Enterprise/SUBNET): set MINIO_LICENSE_FILE in .env to your license file path,
# then uncomment the license volume below so the container sees /minio.license.
services:
  minio:
    image: minio/minio:latest
    container_name: thesis-minio
    ports:
      - "9000:9000"   # S3 API
      - "9001:9001"   # Web console
    environment:
      MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
      MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
      # Optional: path or content for MinIO Enterprise/SUBNET (if using license file, prefer volume mount below)
      # MINIO_LICENSE: ${MINIO_LICENSE_FILE:-}
    command: server /data --console-address ":9001"
    volumes:
      - minio_data:/data
      # Mount license file (uncomment and set MINIO_LICENSE_FILE in .env to e.g. ./minio.license)
      # - ${MINIO_LICENSE_FILE:-./minio.license}:/minio.license:ro
    healthcheck:
      test: ["CMD", "mc", "ready", "local"]
      interval: 5s
      timeout: 5s
      retries: 5
    restart: unless-stopped

volumes:
  minio_data: {}