2019-08-17 15:44:04 -04:00
|
|
|
version: '3.7'
|
2016-09-01 19:35:26 -04:00
|
|
|
|
2020-09-10 12:19:17 -04:00
|
|
|
# starts 4 docker containers running minio server instances.
|
|
|
|
# using nginx reverse proxy, load balancing, you can access
|
|
|
|
# it through port 9000.
|
2016-09-01 19:35:26 -04:00
|
|
|
services:
|
2019-08-17 15:44:04 -04:00
|
|
|
minio1:
|
2020-09-17 01:07:58 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-17T04-49-20Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data1-1:/data1
|
|
|
|
- data1-2:/data2
|
2020-09-10 12:19:17 -04:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 15:44:04 -04:00
|
|
|
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-17 01:07:58 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-17T04-49-20Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data2-1:/data1
|
|
|
|
- data2-2:/data2
|
2020-09-10 12:19:17 -04:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 15:44:04 -04:00
|
|
|
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-17 01:07:58 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-17T04-49-20Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data3-1:/data1
|
|
|
|
- data3-2:/data2
|
2020-09-10 12:19:17 -04:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 15:44:04 -04:00
|
|
|
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-17 01:07:58 -04:00
|
|
|
image: minio/minio:RELEASE.2020-09-17T04-49-20Z
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data4-1:/data1
|
|
|
|
- data4-2:/data2
|
2020-09-10 12:19:17 -04:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 15:44:04 -04:00
|
|
|
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
|
|
|
|
2020-09-10 12:19:17 -04:00
|
|
|
nginx:
|
|
|
|
image: nginx:1.19.2-alpine
|
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
depends_on:
|
|
|
|
- minio1
|
|
|
|
- minio2
|
|
|
|
- minio3
|
|
|
|
- minio4
|
|
|
|
|
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
|
|
|
|