Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vutrandn94/minio-multi-node-multi-drive
Deploy MinIO: Multi-Node Multi-Drive (using docker, docker-compose)
https://github.com/vutrandn94/minio-multi-node-multi-drive
docker docker-compose minio
Last synced: 7 days ago
JSON representation
Deploy MinIO: Multi-Node Multi-Drive (using docker, docker-compose)
- Host: GitHub
- URL: https://github.com/vutrandn94/minio-multi-node-multi-drive
- Owner: vutrandn94
- Created: 2025-01-08T04:15:07.000Z (12 days ago)
- Default Branch: main
- Last Pushed: 2025-01-08T04:43:51.000Z (12 days ago)
- Last Synced: 2025-01-08T05:23:22.489Z (12 days ago)
- Topics: docker, docker-compose, minio
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy MinIO: Multi-Node Multi-Drive
## Require
- Format disk XFS for high performance
- Minimum: 4 server
- Software: Docker, Docker Compose## Example Server Info
| Hostname | IP Address |
| :--- | :--- |
| minio1 | 54.255.132.217 |
| minio2 | 18.143.143.23 |
| minio3 | 52.77.2i36.94 |
| minio4 | 13.228.30.246 |## Deploy
**Defaul minio admin user & password (Change if necessary)**
| Default Root User | Default Root Password |
| :--- | :--- |
| root | Enjoyd@y |**Setting hosts file (Set on all nodes)**
```
54.255.132.217 minio1
18.143.143.23 minio2
52.77.236.94 minio3
13.228.30.246 minio4
```**Prepare (Execute on all nodes)**
```
# groupadd -g 1001 minio# useradd -m -u 1001 -g 1001 -s /usr/sbin/nologin minio
# mkdir -p /mnt/data-{0..1}
# chown minio:minio /tmp/data-{0..1}
```
**docker-compose.yml in minio1 (Config in node "minio1")**
```
services:
minio1:
image: 'bitnami/minio:latest'
restart: always
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=Enjoyd@y
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio{1...4}/bitnami/minio/data-{0...1}
ports:
- 9000:9000
- 9001:9001
volumes:
- /mnt/data-0:/bitnami/minio/data-0
- /mnt/data-1:/bitnami/minio/data-1
```**docker-compose.yml in minio2 (Config in node "minio2")**
```
services:
minio2:
image: 'bitnami/minio:latest'
restart: always
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=Enjoyd@y
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio{1...4}/bitnami/minio/data-{0...1}
ports:
- 9000:9000
- 9001:9001
volumes:
- /mnt/data-0:/bitnami/minio/data-0
- /mnt/data-1:/bitnami/minio/data-1
```**docker-compose.yml in minio3 (Config in node "minio3")**
```
services:
minio3:
image: 'bitnami/minio:latest'
restart: always
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=Enjoyd@y
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio{1...4}/bitnami/minio/data-{0...1}
ports:
- 9000:9000
- 9001:9001
volumes:
- /mnt/data-0:/bitnami/minio/data-0
- /mnt/data-1:/bitnami/minio/data-1
```**docker-compose.yml in minio4 (Config in node "minio4")**
```
services:
minio4:
image: 'bitnami/minio:latest'
restart: always
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=Enjoyd@y
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio{1...4}/bitnami/minio/data-{0...1}
ports:
- 9000:9000
- 9001:9001
volumes:
- /mnt/data-0:/bitnami/minio/data-0
- /mnt/data-1:/bitnami/minio/data-1
```**Deploy service (Execute on all nodes)**
```
# docker-compose up -d
```**Access MinioUI http://:9001 or config Nginx / HAProxy to loadbalance for MinIO nodes**