docker: Move the docker document and compose to a separate dir. (#3135)

master
Harshavardhana 8 years ago committed by Anand Babu (AB) Periasamy
parent 3e8cb8c937
commit 490159ea89
  1. 5
      docs/docker/README.md
  2. 8
      docs/docker/docker-compose.yml

@ -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` ### Run `docker-compose`
```sh ```sh
docker-compose pull
docker-compose up docker-compose up
``` ```

@ -8,8 +8,6 @@ services:
image: minio/minio:edge image: minio/minio:edge
ports: ports:
- "9001:9000" - "9001:9000"
volumes:
- /mnt/export/minio1:/export
environment: environment:
MINIO_ACCESS_KEY: minio MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123 MINIO_SECRET_KEY: minio123
@ -18,8 +16,6 @@ services:
image: minio/minio:edge image: minio/minio:edge
ports: ports:
- "9002:9000" - "9002:9000"
volumes:
- /mnt/export/minio2:/export
environment: environment:
MINIO_ACCESS_KEY: minio MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123 MINIO_SECRET_KEY: minio123
@ -28,8 +24,6 @@ services:
image: minio/minio:edge image: minio/minio:edge
ports: ports:
- "9003:9000" - "9003:9000"
volumes:
- /mnt/export/minio3:/export
environment: environment:
MINIO_ACCESS_KEY: minio MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123 MINIO_SECRET_KEY: minio123
@ -38,8 +32,6 @@ services:
image: minio/minio:edge image: minio/minio:edge
ports: ports:
- "9004:9000" - "9004:9000"
volumes:
- /mnt/export/minio4:/export
environment: environment:
MINIO_ACCESS_KEY: minio MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123 MINIO_SECRET_KEY: minio123
Loading…
Cancel
Save