2019-08-10 11:55:01 -04:00
|
|
|
version: '3.7'
|
2017-03-09 17:06:51 -05:00
|
|
|
|
|
|
|
services:
|
|
|
|
minio1:
|
2020-07-11 17:30:53 -04:00
|
|
|
image: minio/minio:RELEASE.2020-07-11T21-14-23Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio1
|
2017-03-09 17:06:51 -05:00
|
|
|
volumes:
|
|
|
|
- minio1-data:/export
|
|
|
|
ports:
|
|
|
|
- "9001:9000"
|
|
|
|
networks:
|
2019-08-10 11:55:01 -04:00
|
|
|
# On the internal you are exposed as minio1/2/3/4 by default
|
|
|
|
internal: {}
|
|
|
|
minio_distributed:
|
|
|
|
aliases:
|
|
|
|
- minio-cluster
|
2017-03-09 17:06:51 -05:00
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
|
|
|
|
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio1==true
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/export
|
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-03-09 17:06:51 -05:00
|
|
|
|
|
|
|
minio2:
|
2020-07-11 17:30:53 -04:00
|
|
|
image: minio/minio:RELEASE.2020-07-11T21-14-23Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio2
|
2017-03-09 17:06:51 -05:00
|
|
|
volumes:
|
|
|
|
- minio2-data:/export
|
|
|
|
ports:
|
|
|
|
- "9002:9000"
|
|
|
|
networks:
|
2019-08-10 11:55:01 -04:00
|
|
|
# On the internal you are exposed as minio1/2/3/4 by default
|
|
|
|
internal: {}
|
|
|
|
minio_distributed:
|
|
|
|
aliases:
|
|
|
|
- minio-cluster
|
2017-03-09 17:06:51 -05:00
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
|
|
|
|
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio2==true
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/export
|
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-03-09 17:06:51 -05:00
|
|
|
|
|
|
|
minio3:
|
2020-07-11 17:30:53 -04:00
|
|
|
image: minio/minio:RELEASE.2020-07-11T21-14-23Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio3
|
2017-03-09 17:06:51 -05:00
|
|
|
volumes:
|
|
|
|
- minio3-data:/export
|
|
|
|
ports:
|
|
|
|
- "9003:9000"
|
|
|
|
networks:
|
2019-08-10 11:55:01 -04:00
|
|
|
# On the internal you are exposed as minio1/2/3/4 by default
|
|
|
|
internal: {}
|
|
|
|
minio_distributed:
|
|
|
|
aliases:
|
|
|
|
- minio-cluster
|
2017-03-09 17:06:51 -05:00
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
|
|
|
|
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio3==true
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/export
|
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"]
|
2019-08-17 15:44:04 -04:00
|
|
|
interval: 1m30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
2017-03-09 17:06:51 -05:00
|
|
|
|
|
|
|
minio4:
|
2020-07-11 17:30:53 -04:00
|
|
|
image: minio/minio:RELEASE.2020-07-11T21-14-23Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio4
|
2017-03-09 17:06:51 -05:00
|
|
|
volumes:
|
|
|
|
- minio4-data:/export
|
|
|
|
ports:
|
|
|
|
- "9004:9000"
|
|
|
|
networks:
|
2019-08-10 11:55:01 -04:00
|
|
|
# On the internal you are exposed as minio1/2/3/4 by default
|
|
|
|
internal: {}
|
|
|
|
minio_distributed:
|
|
|
|
aliases:
|
|
|
|
- minio-cluster
|
2017-03-09 17:06:51 -05:00
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
|
|
|
|
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio4==true
|
2019-09-01 13:02:15 -04:00
|
|
|
command: server http://minio{1...4}/export
|
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-03-09 17:06:51 -05:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
minio1-data:
|
|
|
|
|
|
|
|
minio2-data:
|
|
|
|
|
|
|
|
minio3-data:
|
|
|
|
|
|
|
|
minio4-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
minio_distributed:
|
|
|
|
driver: overlay
|
2019-08-10 11:55:01 -04:00
|
|
|
internal: {}
|