Created
December 2, 2017 09:52
-
-
Save jmcarbo/a09a55ad235583737fce44a20b4235b1 to your computer and use it in GitHub Desktop.
Minio Play With Docker example
This file contains hidden or 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' | |
services: | |
minio1: | |
image: minio/minio:RELEASE.2017-11-22T19-55-46Z | |
volumes: | |
- minio1-data:/export | |
ports: | |
- "9001:9000" | |
networks: | |
- minio_distributed | |
environment: | |
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE | |
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
deploy: | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
minio2: | |
image: minio/minio:RELEASE.2017-11-22T19-55-46Z | |
volumes: | |
- minio2-data:/export | |
ports: | |
- "9002:9000" | |
networks: | |
- minio_distributed | |
environment: | |
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE | |
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
deploy: | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
minio3: | |
image: minio/minio:RELEASE.2017-11-22T19-55-46Z | |
volumes: | |
- minio3-data:/export | |
ports: | |
- "9003:9000" | |
networks: | |
- minio_distributed | |
environment: | |
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE | |
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
deploy: | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
minio4: | |
image: minio/minio:RELEASE.2017-11-22T19-55-46Z | |
volumes: | |
- minio4-data:/export | |
ports: | |
- "9004:9000" | |
networks: | |
- minio_distributed | |
environment: | |
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE | |
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
deploy: | |
restart_policy: | |
delay: 10s | |
max_attempts: 10 | |
window: 60s | |
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export | |
volumes: | |
minio1-data: | |
minio2-data: | |
minio3-data: | |
minio4-data: | |
networks: | |
minio_distributed: | |
driver: overlay | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker plugin install rexray/s3fs S3FS_OPTIONS="allow_other,use_path_request_style,nonempty,url=http://127.0.0.1:9000" S3FS_ENDPOINT="http://127.0.0.1:9000" S3FS_ACCESSKEY="xxxxxxxxxxxxxxxx" S3FS_SECRETKEY="xxxxxxxxxxxxxxxxxx" --alias s3fs --grant-all-permissions