minio/docker-compose.yml

47 lines
1.4 KiB
YAML
Raw Normal View History

version: '2'
# starts 4 docker containers running minio server instances. Each
# minio server's web interface will be accessible on the host at port
# 9001 through 9004.
services:
minio1:
image: minio/minio:edge
ports:
- "9001:9000"
volumes:
- /mnt/export/minio1:/export
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
minio2:
image: minio/minio:edge
ports:
- "9002:9000"
volumes:
- /mnt/export/minio2:/export
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
minio3:
image: minio/minio:edge
ports:
- "9003:9000"
volumes:
- /mnt/export/minio3:/export
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
minio4:
image: minio/minio:edge
ports:
- "9004:9000"
volumes:
- /mnt/export/minio4:/export
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export