mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
docker: Move the docker document and compose to a separate dir. (#3135)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
3e8cb8c937
commit
490159ea89
@@ -37,13 +37,14 @@ docker run -p 9000:9000 --name minio1 \
|
||||
|
||||
```
|
||||
|
||||
## 4. Run Distributed Minio on Docker
|
||||
## 4. Test Distributed Minio on Docker
|
||||
|
||||
To run 4 minio servers inside different docker containers using [docker-compose](https://docs.docker.com/compose/). Please download [docker-compose.yml](https://raw.githubusercontent.com/minio/minio/master/docker-compose.yml) to your project root directory.
|
||||
To run 4 minio servers inside different docker containers using [docker-compose](https://docs.docker.com/compose/). Please download [docker-compose.yml](./docker-compose.yml) to your current working directory.
|
||||
|
||||
### Run `docker-compose`
|
||||
|
||||
```sh
|
||||
docker-compose pull
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
38
docs/docker/docker-compose.yml
Normal file
38
docs/docker/docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
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"
|
||||
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"
|
||||
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"
|
||||
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"
|
||||
environment:
|
||||
MINIO_ACCESS_KEY: minio
|
||||
MINIO_SECRET_KEY: minio123
|
||||
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
||||
Reference in New Issue
Block a user