2019-08-17 21:44:04 +02:00
|
|
|
version: '3.7'
|
2016-09-02 01:35:26 +02:00
|
|
|
|
2020-09-10 18:19:17 +02:00
|
|
|
# starts 4 docker containers running minio server instances.
|
|
|
|
# using nginx reverse proxy, load balancing, you can access
|
|
|
|
# it through port 9000.
|
2016-09-02 01:35:26 +02:00
|
|
|
services:
|
2019-08-17 21:44:04 +02:00
|
|
|
minio1:
|
2021-05-28 00:35:50 +02:00
|
|
|
image: minio/minio:RELEASE.2021-05-27T22-06-31Z
|
2019-08-17 21:44:04 +02:00
|
|
|
volumes:
|
2019-09-01 19:02:15 +02:00
|
|
|
- data1-1:/data1
|
|
|
|
- data1-2:/data2
|
2020-09-10 18:19:17 +02:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 21:44:04 +02:00
|
|
|
environment:
|
2021-01-05 19:22:57 +01:00
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: minio123
|
2019-09-01 19:02:15 +02:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 21:44:04 +02:00
|
|
|
healthcheck:
|
2019-09-05 11:20:56 +02:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 21:44:04 +02:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio2:
|
2021-05-28 00:35:50 +02:00
|
|
|
image: minio/minio:RELEASE.2021-05-27T22-06-31Z
|
2019-08-17 21:44:04 +02:00
|
|
|
volumes:
|
2019-09-01 19:02:15 +02:00
|
|
|
- data2-1:/data1
|
|
|
|
- data2-2:/data2
|
2020-09-10 18:19:17 +02:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 21:44:04 +02:00
|
|
|
environment:
|
2021-01-05 19:22:57 +01:00
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: minio123
|
2019-09-01 19:02:15 +02:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 21:44:04 +02:00
|
|
|
healthcheck:
|
2019-09-05 11:20:56 +02:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 21:44:04 +02:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio3:
|
2021-05-28 00:35:50 +02:00
|
|
|
image: minio/minio:RELEASE.2021-05-27T22-06-31Z
|
2019-08-17 21:44:04 +02:00
|
|
|
volumes:
|
2019-09-01 19:02:15 +02:00
|
|
|
- data3-1:/data1
|
|
|
|
- data3-2:/data2
|
2020-09-10 18:19:17 +02:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 21:44:04 +02:00
|
|
|
environment:
|
2021-01-05 19:22:57 +01:00
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: minio123
|
2019-09-01 19:02:15 +02:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 21:44:04 +02:00
|
|
|
healthcheck:
|
2019-09-05 11:20:56 +02:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 21:44:04 +02:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
minio4:
|
2021-05-28 00:35:50 +02:00
|
|
|
image: minio/minio:RELEASE.2021-05-27T22-06-31Z
|
2019-08-17 21:44:04 +02:00
|
|
|
volumes:
|
2019-09-01 19:02:15 +02:00
|
|
|
- data4-1:/data1
|
|
|
|
- data4-2:/data2
|
2020-09-10 18:19:17 +02:00
|
|
|
expose:
|
|
|
|
- "9000"
|
2019-08-17 21:44:04 +02:00
|
|
|
environment:
|
2021-01-05 19:22:57 +01:00
|
|
|
MINIO_ROOT_USER: minio
|
|
|
|
MINIO_ROOT_PASSWORD: minio123
|
2019-09-01 19:02:15 +02:00
|
|
|
command: server http://minio{1...4}/data{1...2}
|
2019-08-17 21:44:04 +02:00
|
|
|
healthcheck:
|
2019-09-05 11:20:56 +02:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
2019-08-17 21:44:04 +02:00
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
2017-09-19 21:43:45 +02:00
|
|
|
|
2020-09-10 18:19:17 +02: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 21:43:45 +02:00
|
|
|
## By default this config uses default local driver,
|
|
|
|
## For custom volumes replace with volume driver configuration.
|
|
|
|
volumes:
|
2019-09-01 19:02:15 +02:00
|
|
|
data1-1:
|
|
|
|
data1-2:
|
|
|
|
data2-1:
|
|
|
|
data2-2:
|
|
|
|
data3-1:
|
|
|
|
data3-2:
|
|
|
|
data4-1:
|
|
|
|
data4-2:
|