Docker Compose for MinIO

MinIO S3-compatible object storage. Self-hosted alternative to AWS S3.

minio s3 storage object-storage
compose.yaml
services:
  minio:
    image: minio/minio:latest
    command: server /data --console-address ":9001"
    ports:
      - target: 9000
        mode: ingress
      - target: 9001
        mode: ingress
    environment:
      - MINIO_ROOT_USER=${MINIO_ROOT_USER}
      - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
    healthcheck:
      test:
        - CMD
        - curl
        - -f
        - http://localhost:9000/minio/health/live
      interval: 30s
      timeout: 5s
      retries: 3
    deploy:
      resources:
        reservations:
          cpus: "0.5"
          memory: 256M
    restart: unless-stopped

Services

  • minio minio/minio:latest

Deploy

$ npx defang@latest compose up

Learn more about Defang