Created
August 10, 2017 07:59
-
-
Save dcharbonnier/31b9ec2a67a31db94276c5518980c6cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
minio1: | |
image: minio/minio:${MINIO_VERSION:-latest} | |
volumes: | |
- minio-data:/export | |
ports: | |
- "9001:9000" | |
- target: 9000 | |
published: 9000 | |
protocol: tcp | |
mode: host | |
networks: | |
- minio_distributed | |
deploy: | |
placement: | |
constraints: | |
- node.labels.role == storage | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
secrets: | |
- secret_key | |
- access_key | |
minio2: | |
image: minio/minio:${MINIO_VERSION:-latest} | |
volumes: | |
- minio-data:/export | |
ports: | |
- "9002:9000" | |
- target: 9000 | |
published: 9000 | |
protocol: tcp | |
mode: host | |
networks: | |
- minio_distributed | |
deploy: | |
placement: | |
constraints: | |
- node.labels.role == storage | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
secrets: | |
- secret_key | |
- access_key | |
minio3: | |
image: minio/minio:${MINIO_VERSION:-latest} | |
volumes: | |
- minio-data:/export | |
ports: | |
- "9003:9000" | |
- target: 9000 | |
published: 9000 | |
protocol: tcp | |
mode: host | |
networks: | |
- minio_distributed | |
deploy: | |
placement: | |
constraints: | |
- node.labels.role == storage | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
secrets: | |
- secret_key | |
- access_key | |
minio4: | |
image: minio/minio:${MINIO_VERSION:-latest} | |
volumes: | |
- minio-data:/export | |
ports: | |
- "9004:9000" | |
- target: 9000 | |
published: 9000 | |
protocol: tcp | |
mode: host | |
networks: | |
- minio_distributed | |
deploy: | |
placement: | |
constraints: | |
- node.labels.role == storage | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
secrets: | |
- secret_key | |
- access_key | |
volumes: | |
minio-data: | |
networks: | |
minio_distributed: | |
driver: overlay | |
secrets: | |
secret_key: | |
external: true | |
access_key: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment