2019-08-17 15:44:04 -04:00
|
|
|
version: '3.7'
|
2016-09-01 19:35:26 -04:00
|
|
|
|
2021-07-18 21:06:40 -04:00
|
|
|
# Settings and configurations that are common for all containers
|
|
|
|
x-minio-common: &minio-common
|
2023-09-30 03:51:58 -04:00
|
|
|
image: quay.io/minio/minio:RELEASE.2023-09-30T07-02-29Z
|
2021-07-18 21:06:40 -04:00
|
|
|
command: server --console-address ":9001" http://minio{1...4}/data{1...2}
|
|
|
|
expose:
|
|
|
|
- "9000"
|
|
|
|
- "9001"
|
2022-03-04 23:01:26 -05:00
|
|
|
# environment:
|
|
|
|
# MINIO_ROOT_USER: minioadmin
|
|
|
|
# MINIO_ROOT_PASSWORD: minioadmin
|
2021-07-18 21:06:40 -04:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
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:
|
2021-07-18 21:06:40 -04:00
|
|
|
<<: *minio-common
|
2021-05-31 22:11:52 -04:00
|
|
|
hostname: minio1
|
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
|
|
|
|
|
|
|
minio2:
|
2021-07-18 21:06:40 -04:00
|
|
|
<<: *minio-common
|
2021-05-31 22:11:52 -04:00
|
|
|
hostname: minio2
|
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
|
|
|
|
|
|
|
minio3:
|
2021-07-18 21:06:40 -04:00
|
|
|
<<: *minio-common
|
2021-05-31 22:11:52 -04:00
|
|
|
hostname: minio3
|
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
|
|
|
|
|
|
|
minio4:
|
2021-07-18 21:06:40 -04:00
|
|
|
<<: *minio-common
|
2021-05-31 22:11:52 -04:00
|
|
|
hostname: minio4
|
2019-08-17 15:44:04 -04:00
|
|
|
volumes:
|
2019-09-01 13:02:15 -04:00
|
|
|
- data4-1:/data1
|
|
|
|
- data4-2:/data2
|
2017-09-19 15:43:45 -04:00
|
|
|
|
2020-09-10 12:19:17 -04:00
|
|
|
nginx:
|
|
|
|
image: nginx:1.19.2-alpine
|
2021-05-31 22:11:52 -04:00
|
|
|
hostname: nginx
|
2020-09-10 12:19:17 -04:00
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
2021-07-11 22:31:40 -04:00
|
|
|
- "9001:9001"
|
2020-09-10 12:19:17 -04:00
|
|
|
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:
|