Skip to content

Instantly share code, notes, and snippets.

@nickadam
Last active July 22, 2019 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickadam/46a03f12429ccc038f5ab2874a1cf154 to your computer and use it in GitHub Desktop.
Save nickadam/46a03f12429ccc038f5ab2874a1cf154 to your computer and use it in GitHub Desktop.
minio cluster
version: '3.5'
services:
minio1:
image: minio/minio:RELEASE.2019-07-17T22-54-12Z
hostname: minio1
volumes:
- minio1-data:/export
ports:
- target: 9000
published: 9009
mode: host
deploy:
mode: global
restart_policy:
delay: 10s
max_attempts: 10
window: 60s
placement:
constraints: [node.labels.minio == minio1]
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
secrets:
- secret_key
- access_key
minio2:
image: minio/minio:RELEASE.2019-07-17T22-54-12Z
hostname: minio2
volumes:
- minio2-data:/export
ports:
- target: 9000
published: 9009
mode: host
deploy:
mode: global
restart_policy:
delay: 10s
max_attempts: 10
window: 60s
placement:
constraints: [node.labels.minio == minio2]
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
secrets:
- secret_key
- access_key
minio3:
image: minio/minio:RELEASE.2019-07-17T22-54-12Z
hostname: minio3
volumes:
- minio3-data:/export
ports:
- target: 9000
published: 9009
mode: host
deploy:
mode: global
restart_policy:
delay: 10s
max_attempts: 10
window: 60s
placement:
constraints: [node.labels.minio == minio3]
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
secrets:
- secret_key
- access_key
minio4:
image: minio/minio:RELEASE.2019-07-17T22-54-12Z
hostname: minio4
volumes:
- minio4-data:/export
ports:
- target: 9000
published: 9009
mode: host
deploy:
mode: global
restart_policy:
delay: 10s
max_attempts: 10
window: 60s
placement:
constraints: [node.labels.minio == minio4]
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
secrets:
- secret_key
- access_key
volumes:
minio1-data: {}
minio2-data: {}
minio3-data: {}
minio4-data: {}
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