2019-08-17 15:44:04 -04:00
|
|
|
version: '3.7'
|
2017-05-22 14:30:30 -04:00
|
|
|
|
|
|
|
services:
|
|
|
|
minio1:
|
2019-08-28 20:30:50 -04:00
|
|
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio1
|
2017-05-22 14:30:30 -04:00
|
|
|
volumes:
|
|
|
|
- minio1-data:/export
|
|
|
|
ports:
|
|
|
|
- "9001:9000"
|
|
|
|
networks:
|
|
|
|
- minio_distributed
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio1==true
|
2017-05-22 14:30:30 -04:00
|
|
|
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
|
|
|
secrets:
|
|
|
|
- secret_key
|
|
|
|
- access_key
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://minio1:9000/minio/health/live"]
|
|
|
|
interval: 1m30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
start_period: 3m
|
2017-05-22 14:30:30 -04:00
|
|
|
|
|
|
|
minio2:
|
2019-08-28 20:30:50 -04:00
|
|
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio2
|
2017-05-22 14:30:30 -04:00
|
|
|
volumes:
|
|
|
|
- minio2-data:/export
|
|
|
|
ports:
|
|
|
|
- "9002:9000"
|
|
|
|
networks:
|
|
|
|
- minio_distributed
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio2==true
|
2017-05-22 14:30:30 -04:00
|
|
|
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
|
|
|
secrets:
|
|
|
|
- secret_key
|
|
|
|
- access_key
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://minio2:9000/minio/health/live"]
|
|
|
|
interval: 1m30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
start_period: 3m
|
2017-05-22 14:30:30 -04:00
|
|
|
|
|
|
|
minio3:
|
2019-08-28 20:30:50 -04:00
|
|
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio3
|
2017-05-22 14:30:30 -04:00
|
|
|
volumes:
|
|
|
|
- minio3-data:/export
|
|
|
|
ports:
|
|
|
|
- "9003:9000"
|
|
|
|
networks:
|
|
|
|
- minio_distributed
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio3==true
|
2017-05-22 14:30:30 -04:00
|
|
|
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
|
|
|
secrets:
|
|
|
|
- secret_key
|
|
|
|
- access_key
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://minio3:9000/minio/health/live"]
|
|
|
|
interval: 1m30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
start_period: 3m
|
2017-05-22 14:30:30 -04:00
|
|
|
|
|
|
|
minio4:
|
2019-08-28 20:30:50 -04:00
|
|
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
2018-10-11 05:11:19 -04:00
|
|
|
hostname: minio4
|
2017-05-22 14:30:30 -04:00
|
|
|
volumes:
|
|
|
|
- minio4-data:/export
|
|
|
|
ports:
|
|
|
|
- "9004:9000"
|
|
|
|
networks:
|
|
|
|
- minio_distributed
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 10
|
|
|
|
window: 60s
|
2018-10-11 05:11:19 -04:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.labels.minio4==true
|
2017-05-22 14:30:30 -04:00
|
|
|
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
|
|
|
secrets:
|
|
|
|
- secret_key
|
|
|
|
- access_key
|
2019-08-17 15:44:04 -04:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://minio4:9000/minio/health/live"]
|
|
|
|
interval: 1m30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
start_period: 3m
|
2017-05-22 14:30:30 -04:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
minio1-data:
|
|
|
|
|
|
|
|
minio2-data:
|
|
|
|
|
|
|
|
minio3-data:
|
|
|
|
|
|
|
|
minio4-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
minio_distributed:
|
|
|
|
driver: overlay
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
secret_key:
|
|
|
|
external: true
|
|
|
|
access_key:
|
|
|
|
external: true
|