# MinIO — self-hosting guide (Docker Compose + reverse proxy)

> S3-compatible object storage. Note: MinIO community edition is now source-only; no new prebuilt binary releases (per the official README).

- Page: https://deploy.cc/en/apps/minio
- Category: Cloud storage & files
- Server: No official minimum; our generic suggestion: 2 vCPU / 2 GB RAM and up (not an official figure)
- Ports: 9000 (S3 API); 9001 (Console)
- Repository: https://github.com/minio/minio
- Docs: https://docs.min.io/
- Deploy source: https://github.com/minio/minio#source-only-distribution
- Verification: official method (not modified or run by us)
- Last verified: 2026-11-13

## Official install steps

```bash
# 需要 Go 环境（官方 README：Install from Source）
go install github.com/minio/minio@latest
# 或在源码目录构建镜像（需先编译出 minio 二进制）
git clone https://github.com/minio/minio.git && cd minio
docker build -t myminio:minio .
docker run -p 127.0.0.1:9000:9000 -p 127.0.0.1:9001:9001 myminio:minio server /data --console-address :9001
```

## Notes

- Per the official README the community edition is source-only and legacy binaries receive no updates.
- No one-click script is provided for MinIO.

## Nginx

```nginx
# MinIO 反向代理 / reverse proxy — generated by deploy.cc
# 把 example.com 换成你的域名，证书路径按实际修改（certbot / acme.sh 签发）。
# Replace example.com and the certificate paths. More options: https://nginx.cc/zh/gen
# 放到 /etc/nginx/conf.d/<name>.conf，然后 nginx -t && systemctl reload nginx

map $http_upgrade $connection_upgrade_minio {
    default upgrade;
    ''      close;
}

server {
    listen 80;
    listen [::]:80;
    server_name example.com;

    location /.well-known/acme-challenge/ {
        root /var/www/html;
    }

    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    http2 on;  # nginx < 1.25.1: 删除此行，改为 listen 443 ssl http2;
    server_name example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;

    client_max_body_size 0;

    location / {
        proxy_pass http://127.0.0.1:9001;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade_minio;
        proxy_read_timeout 3600s;
    }
}
```

## Caddy

```caddy
# MinIO — Caddyfile (deploy.cc). Caddy 会自动申请 HTTPS 证书 / automatic HTTPS
example.com {
    reverse_proxy 127.0.0.1:9001
}
```

## Update

```bash
# 重新拉取源码并构建
```

## FAQ

### What is MinIO?

S3-compatible object storage. Note: MinIO community edition is now source-only; no new prebuilt binary releases (per the official README). Repository: https://github.com/minio/minio

### What server do I need for MinIO?

No official minimum; our generic suggestion: 2 vCPU / 2 GB RAM and up (not an official figure)

### Which ports does MinIO use?

9000 (S3 API); 9001 (Console)

### How do I update MinIO?

# 重新拉取源码并构建. Back up and read the release notes before major upgrades.

---
deploy.cc (unofficial; trademarks belong to their owners) · v0.2.2
