2019-08-17 15:44:04 -04:00
|
|
|
version: '3.7'
|
2016-09-01 19:35:26 -04:00
|
|
|
|
|
|
|
# starts 4 docker containers running minio server instances. Each
|
|
|
|
# minio server's web interface will be accessible on the host at port
|
|
|
|
# 9001 through 9004.
|
|
|
|
services:
|
2019-08-17 15:44:04 -04:00
|
|
|
minio1:
|
2020-09-08 19:25:40 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-08T23-05-18Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data1-1:/data1
|
|
|
|
- data1-2:/data2
|
2019-08-17 15:44:04 -04:00
|
|
|
ports:
|
|
|
|
- "9001:9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: minio
|
|
|
|
MINIO_SECRET_KEY: minio123
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
2019-09-05 05:20:56 -04:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 15:44:04 -04:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio2:
|
2020-09-08 19:25:40 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-08T23-05-18Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data2-1:/data1
|
|
|
|
- data2-2:/data2
|
2019-08-17 15:44:04 -04:00
|
|
|
ports:
|
|
|
|
- "9002:9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: minio
|
|
|
|
MINIO_SECRET_KEY: minio123
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
2019-09-05 05:20:56 -04:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 15:44:04 -04:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio3:
|
2020-09-08 19:25:40 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-08T23-05-18Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data3-1:/data1
|
|
|
|
- data3-2:/data2
|
2019-08-17 15:44:04 -04:00
|
|
|
ports:
|
|
|
|
- "9003:9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: minio
|
|
|
|
MINIO_SECRET_KEY: minio123
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
2019-09-05 05:20:56 -04:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 15:44:04 -04:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio4:
|
2020-09-08 19:25:40 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-08T23-05-18Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data4-1:/data1
|
|
|
|
- data4-2:/data2
|
2019-08-17 15:44:04 -04:00
|
|
|
ports:
|
|
|
|
- "9004:9000"
|
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: minio
|
|
|
|
MINIO_SECRET_KEY: minio123
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
2019-09-05 05:20:56 -04:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 15:44:04 -04:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
2017-09-19 15:43:45 -04:00
|
|
|
|
|
|
|
## By default this config uses default local driver,
|
|
|
|
## For custom volumes replace with volume driver configuration.
|
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
data1-1:
|
|
|
|
data1-2:
|
|
|
|
data2-1:
|
|
|
|
data2-2:
|
|
|
|
data3-1:
|
|
|
|
data3-2:
|
|
|
|
data4-1:
|
|
|
|
data4-2:
|
2017-09-19 15:43:45 -04:00
|
|
|
|