minio/docs/orchestration/docker-compose
Minio Trusted 53cbc020b9 Update yaml files to latest version RELEASE.2022-11-26T22-43-32Z 2022-11-27 04:08:35 +00:00
..
README.md Update links to documentation site (#15750) 2022-09-28 21:28:45 -07:00
docker-compose.yaml Update yaml files to latest version RELEASE.2022-11-26T22-43-32Z 2022-11-27 04:08:35 +00:00
nginx.conf Update nginx.conf for large file uploads (#14481) 2022-03-04 22:32:39 -08:00

README.md

Deploy MinIO on Docker Compose Slack Docker Pulls

Docker Compose allows defining and running single host, multi-container Docker applications.

With Compose, you use a Compose file to configure MinIO services. Then, using a single command, you can create and launch all the Distributed MinIO instances from your configuration. Distributed MinIO instances will be deployed in multiple containers on the same host. This is a great way to set up development, testing, and staging environments, based on Distributed MinIO.

1. Prerequisites

  • Familiarity with Docker Compose.
  • Docker installed on your machine. Download the relevant installer from here.

2. Run Distributed MinIO on Docker Compose

To deploy Distributed MinIO on Docker Compose, please download docker-compose.yaml and nginx.conf to your current working directory. Note that Docker Compose pulls the MinIO Docker image, so there is no need to explicitly download MinIO binary. Then run one of the below commands

GNU/Linux and macOS

docker-compose pull
docker-compose up

or

docker stack deploy --compose-file docker-compose.yaml minio

Windows

docker-compose.exe pull
docker-compose.exe up

or

docker stack deploy --compose-file docker-compose.yaml minio

Distributed instances are now accessible on the host at ports 9000, proceed to access the Web browser at http://127.0.0.1:9000/. Here 4 MinIO server instances are reverse proxied through Nginx load balancing.

Notes

  • By default the Docker Compose file uses the Docker image for latest MinIO server release. You can change the image tag to pull a specific MinIO Docker image.

  • There are 4 minio distributed instances created by default. You can add more MinIO services (up to total 16) to your MinIO Compose deployment. To add a service

    • Replicate a service definition and change the name of the new service appropriately.
    • Update the command section in each service.
    • Add a new MinIO server instance to the upstream directive in the Nginx configuration file.

    Read more about distributed MinIO here.

Explore Further