Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Created January 21, 2017 16:03
Show Gist options
  • Save russmckendrick/b403c372f870fe42bfeb65bad1b6f236 to your computer and use it in GitHub Desktop.
Save russmckendrick/b403c372f870fe42bfeb65bad1b6f236 to your computer and use it in GitHub Desktop.
Minio Docker Compose
version: "3"
services:
minio1:
image: minio/minio
ports:
- "9000:9000"
networks:
- minionet
volumes:
- minio1:/myexport
environment:
MINIO_ACCESS_KEY: 6b4535c9d0545e036d5a
MINIO_SECRET_KEY: f50a73124f5699570beb9ad44cd940
command: server http://minio1/myexport http://minio2/myexport http://minio3/myexport http://minio4/myexport http://minio5/myexport http://minio6/myexport
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == swarm01
minio2:
image: minio/minio
ports:
- "9000"
networks:
- minionet
volumes:
- minio2:/myexport
environment:
MINIO_ACCESS_KEY: 6b4535c9d0545e036d5a
MINIO_SECRET_KEY: f50a73124f5699570beb9ad44cd940
command: server http://minio1/myexport http://minio2/myexport http://minio3/myexport http://minio4/myexport http://minio5/myexport http://minio6/myexport
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == swarm01
minio3:
image: minio/minio
ports:
- "9000"
networks:
- minionet
volumes:
- minio3:/myexport
environment:
MINIO_ACCESS_KEY: 6b4535c9d0545e036d5a
MINIO_SECRET_KEY: f50a73124f5699570beb9ad44cd940
command: server http://minio1/myexport http://minio2/myexport http://minio3/myexport http://minio4/myexport http://minio5/myexport http://minio6/myexport
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == swarm02
minio4:
image: minio/minio
ports:
- "9000"
networks:
- minionet
volumes:
- minio4:/myexport
environment:
MINIO_ACCESS_KEY: 6b4535c9d0545e036d5a
MINIO_SECRET_KEY: f50a73124f5699570beb9ad44cd940
command: server http://minio1/myexport http://minio2/myexport http://minio3/myexport http://minio4/myexport http://minio5/myexport http://minio6/myexport
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == swarm02
minio5:
image: minio/minio
ports:
- "9000"
networks:
- minionet
volumes:
- minio5:/myexport
environment:
MINIO_ACCESS_KEY: 6b4535c9d0545e036d5a
MINIO_SECRET_KEY: f50a73124f5699570beb9ad44cd940
command: server http://minio1/myexport http://minio2/myexport http://minio3/myexport http://minio4/myexport http://minio5/myexport http://minio6/myexport
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == swarm03
minio6:
image: minio/minio
ports:
- "9000"
networks:
- minionet
volumes:
- minio6:/myexport
environment:
MINIO_ACCESS_KEY: 6b4535c9d0545e036d5a
MINIO_SECRET_KEY: f50a73124f5699570beb9ad44cd940
command: server http://minio1/myexport http://minio2/myexport http://minio3/myexport http://minio4/myexport http://minio5/myexport http://minio6/myexport
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == swarm03
networks:
minionet:
volumes:
minio1:
minio2:
minio3:
minio4:
minio5:
minio6:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment