# Instalação Minio docker bitnami

Link: [https://hub.docker.com/r/bitnami/minio](https://hub.docker.com/r/bitnami/minio)

#### What is Bitnami Object Storage based on MinIO®?

> MinIO® is an object storage server, compatible with Amazon S3 cloud storage service, mainly used for storing unstructured data (such as photos, videos, log files, etc.).

[Overview of Bitnami Object Storage based on MinIO®⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://min.io/) Disclaimer: All software products, projects and company names are trademark(TM) or registered(R) trademarks of their respective holders, and use of them does not imply any affiliation or endorsement. This software is licensed to you subject to one or more open source licenses and VMware provides the software on an AS-IS basis. MinIO(R) is a registered trademark of the MinIO Inc. in the US and other countries. Bitnami is not affiliated, associated, authorized, endorsed by, or in any way officially connected with MinIO Inc. MinIO(R) is licensed under GNU AGPL v3.0.

#### TL;DR

```console
docker run --name minio bitnami/minio:latest

```

#### Why use Bitnami Images?

<div id="bkmrk-bitnami-closely-trac">- Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
- With Bitnami images the latest bug fixes and features are available as soon as possible.
- Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
- All our images are based on [**minideb**⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/minideb) -a minimalist Debian based container image that gives you a small base container image and the familiarity of a leading Linux distribution- or **scratch** -an explicitly empty image-.
- All Bitnami images available in Docker Hub are signed with [Notation⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://notaryproject.dev/). [Check this post⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://blog.bitnami.com/2024/03/bitnami-packaged-containers-and-helm.html) to know how to verify the integrity of the images.
- Bitnami container images are released on a regular basis with the latest distribution packages available.

</div>Looking to use Bitnami Object Storage based on MinIO® in production? Try [VMware Tanzu Application Catalog⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog.

#### How to deploy MinIO(R) in Kubernetes?

Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the [Bitnami MinIO(R) Chart GitHub repository⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/charts/tree/master/bitnami/minio).

#### Why use a non-root container?

Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers [in our docs⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-work-with-non-root-containers-index.html).

#### Only the latest stable branch maintained in the free Bitnami catalog

Starting December 10th, 2024, only the latest stable branch of each container image will receive updates in the free Bitnami catalog. To access up-to-date releases for all upstream-supported branches (e.g., LTS), consider upgrading to Bitnami Premium. Previously released versions will not be deleted and will remain available for pulling from DockerHub.

Please check the Bitnami Premium page in our partner [Arrow Electronics⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://www.arrow.com/globalecs/na/vendors/bitnami?utm_source=GitHub&utm_medium=containers) for more information.

#### Supported tags and respective `Dockerfile` links

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html).

You can see the equivalence between the different tags by taking a look at the `tags-info.yaml` file present in the branch folder, i.e `bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml`.

Subscribe to project updates by watching the [bitnami/containers GitHub repo⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers).

#### Get this image

The recommended way to get the Bitnami MinIO(R) Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/minio).

```console
docker pull bitnami/minio:latest

```

To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/minio/tags/) in the Docker Hub Registry.

```console
docker pull bitnami/minio:[TAG]

```

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the `docker build` command. Remember to replace the `APP`, `VERSION` and `OPERATING-SYSTEM` path placeholders in the example command below with the correct values.

```console
git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .

```

#### Persisting your database

If you remove the container all your data will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

For persistence you should mount a directory at the `/bitnami/minio/data` path.

```console
docker run --name minio \
    --publish 9000:9000 \
    --publish 9001:9001 \
    --volume /path/to/minio-persistence:/bitnami/minio/data \
    bitnami/minio:latest

```

or by modifying the [`docker-compose.yml`⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/bitnami/minio/docker-compose.yml) file present in this repository:

```yaml
services:
  minio:
  ...
    volumes:
      - /path/to/minio-persistence:/bitnami/minio/data
  ...

```

You can also mount a volume to a custom path inside the container, provided that you run the container using the `MINIO_DATA_DIR` environment variable.

```console
docker run --name minio \
    --publish 9000:9000 \
    --publish 9001:9001 \
    --volume /path/to/minio-persistence:/custom/path/within/container \
    --env MINIO_DATA_DIR=/custom/path/within/container \
    bitnami/minio:latest

```

or by modifying the [`docker-compose.yml`⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/bitnami/minio/docker-compose.yml) file present in this repository:

```yaml
services:
  minio:
  ...
    volumes:
      - /path/to/minio-persistence:/custom/path/within/container
  ...
    environment:
      - MINIO_DATA_DIR=/custom/path/within/container
  ...

```

> NOTE: As this is a non-root container, the mounted files and directories must have the proper permissions for the UID `1001`.

#### Connecting to other containers

Using [Docker container networking⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.docker.com/engine/userguide/networking/), a MinIO(R) server running inside a container can easily be accessed by your application containers.

Containers attached to the same network can communicate with each other using the container name as the hostname.

##### Using the Command Line

In this example, we will create a [MinIO(R) client⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/bitnami/minio-client) container that will connect to the server container that is running on the same docker network as the client.

**Step 1: Create a network**

```console
docker network create app-tier --driver bridge

```

**Step 2: Launch the MinIO(R) server container**

Use the `--network app-tier` argument to the `docker run` command to attach the MinIO(R) container to the `app-tier` network.

```console
docker run -d --name minio-server \
    --env MINIO_ROOT_USER="minio-root-user" \
    --env MINIO_ROOT_PASSWORD="minio-root-password" \
    --network app-tier \
    bitnami/minio:latest

```

**Step 3: Launch your MinIO(R) Client container**

Finally we create a new container instance to launch the MinIO(R) client and connect to the server created in the previous step. In this example, we create a new bucket in the MinIO(R) storage server:

```console
docker run -it --rm --name minio-client \
    --env MINIO_SERVER_HOST="minio-server" \
    --env MINIO_SERVER_ACCESS_KEY="minio-access-key" \
    --env MINIO_SERVER_SECRET_KEY="minio-secret-key" \
    --network app-tier \
    bitnami/minio-client \
    mb minio/my-bucket

```

##### Using a Docker Compose file

When not specified, Docker Compose automatically sets up a new network and attaches all deployed services to that network. However, we will explicitly define a new `bridge` network named `app-tier`. In this example we assume that you want to connect to the MinIO(R) server from your own custom application image which is identified in the following snippet by the service name `myapp`.

```yaml
version: '2'

networks:
  app-tier:
    driver: bridge

services:
  minio:
    image: bitnami/minio:latest
    ports:
      - 9000:9000
      - 9001:9001
    environment:
      - MINIO_ROOT_USER=minio-root-user
      - MINIO_ROOT_PASSWORD=minio-root-password
    networks:
      - app-tier
  myapp:
    image: YOUR_APPLICATION_IMAGE
    networks:
      - app-tier
    environment:
      - MINIO_SERVER_ACCESS_KEY=minio-access-key
      - MINIO_SERVER_SECRET_KEY=minio-secret-key

```

> **IMPORTANT**:
> 
> 1. Please update the **YOUR\_APPLICATION\_IMAGE\_** placeholder in the above snippet with your application image
> 2. In your application container, use the hostname `minio` to connect to the MinIO(R) server. Use the environment variables `MINIO_SERVER_ACCESS_KEY` and `MINIO_SERVER_SECRET_KEY` to configure the credentials to access the MinIO(R) server.
> 3. Make sure that the environment variables `MINIO_ROOT_PASSWORD` and `MINIO_SERVER_SECRET_KEY` meet the 8 character minimum length requirement enforced by MinIO(R).

Launch the containers using:

```console
docker-compose up -d

```

#### Configuration

##### Environment variables

**Customizable environment variables**

<div id="bkmrk-name-description-def"><div class="MuiTableContainer-root css-x0c05s"><table class="MuiTable-root css-r2l3fl"><thead class="MuiTableHead-root css-1p3470z"><tr class="MuiTableRow-root MuiTableRow-head css-3bitz9"><th class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium css-1l2u9jb" scope="col">Name</th><th class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium css-1l2u9jb" scope="col">Description</th><th class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium css-1l2u9jb" scope="col">Default Value</th></tr></thead><tbody class="MuiTableBody-root css-y6j1my"><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_DATA_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO directory for data.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`/bitnami/minio/data`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_API_PORT_NUMBER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO API port number.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`9000`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_BROWSER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">Enable / disable the embedded MinIO Console.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`off`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_CONSOLE_PORT_NUMBER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO Console port number.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`9001`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_SCHEME`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO web scheme.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`http`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_SKIP_CLIENT`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">Skip MinIO client configuration.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`no`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_DISTRIBUTED_MODE_ENABLED`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">Enable MinIO distributed mode.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`no`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_DEFAULT_BUCKETS`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO default buckets.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`nil`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_STARTUP_TIMEOUT`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO startup timeout.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`10`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_SERVER_URL`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO server external URL.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`$MINIO_SCHEME://localhost:$MINIO_API_PORT_NUMBER`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_APACHE_CONSOLE_HTTP_PORT_NUMBER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO Console UI HTTP port, exposed via Apache with basic authentication.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`80`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_APACHE_CONSOLE_HTTPS_PORT_NUMBER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO Console UI HTTPS port, exposed via Apache with basic authentication.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`443`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_APACHE_API_HTTP_PORT_NUMBER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO API HTTP port, exposed via Apache with basic authentication.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`9000`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_APACHE_API_HTTPS_PORT_NUMBER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO API HTTPS port, exposed via Apache with basic authentication.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`9443`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_FORCE_NEW_KEYS`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">Force recreating MinIO keys.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`no`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_ROOT_USER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO root user name.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`minio`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_ROOT_PASSWORD`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">Password for MinIO root user.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`miniosecret`</td></tr></tbody></table>

</div></div>**Read-only environment variables**

<div id="bkmrk-name-description-val"><div class="MuiTableContainer-root css-x0c05s"><table class="MuiTable-root css-r2l3fl"><thead class="MuiTableHead-root css-1p3470z"><tr class="MuiTableRow-root MuiTableRow-head css-3bitz9"><th class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium css-1l2u9jb" scope="col">Name</th><th class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium css-1l2u9jb" scope="col">Description</th><th class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium css-1l2u9jb" scope="col">Value</th></tr></thead><tbody class="MuiTableBody-root css-y6j1my"><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_BASE_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO installation directory.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${BITNAMI_ROOT_DIR}/minio`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_BIN_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO directory for binaries.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${MINIO_BASE_DIR}/bin`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_CERTS_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO directory for TLS certificates.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`/certs`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_LOGS_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO directory for log files.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${MINIO_BASE_DIR}/log`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_TMP_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO directory for log files.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${MINIO_BASE_DIR}/tmp`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_SECRETS_DIR`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO directory for credentials.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${MINIO_BASE_DIR}/secrets`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_LOG_FILE`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO log file.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${MINIO_LOGS_DIR}/minio.log`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_PID_FILE`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO PID file.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`${MINIO_TMP_DIR}/minio.pid`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_DAEMON_USER`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO system user.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`minio`</td></tr><tr class="MuiTableRow-root css-3bitz9"><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`MINIO_DAEMON_GROUP`</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">MinIO system group.</td><td class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-fwoeup">`minio`</td></tr></tbody></table>

</div></div>Additionally, MinIO can be configured via environment variables as detailed at [MinIO(R) documentation⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.min.io/docs/minio-server-configuration-guide.html).

A MinIO(R) Client (`mc`) is also shipped on this image that can be used to perform administrative tasks as described at the [MinIO(R) Client documentation⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.min.io/docs/minio-admin-complete-guide.html). In the example below, the client is used to obtain the server info:

```console
docker run --name minio -d bitnami/minio:latest
docker exec minio mc admin info local

```

or using Docker Compose:

```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/minio/docker-compose.yml > docker-compose.yml
docker-compose up -d
docker-compose exec minio mc admin info local

```

##### Creating default buckets

You can create a series of buckets in the MinIO(R) server during the initialization of the container by setting the environment variable `MINIO_DEFAULT_BUCKETS` as shown below (policy is optional):

```console
docker run --name minio \
    --publish 9000:9000 \
    --publish 9001:9001 \
    --env MINIO_DEFAULT_BUCKETS='my-first-bucket:policy,my-second-bucket' \
    bitnami/minio:latest

```

or by modifying the [`docker-compose.yml`⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/bitnami/minio/docker-compose.yml) file present in this repository:

```yaml
services:
  minio:
  ...
    environment:
      - MINIO_DEFAULT_BUCKETS=my-first-bucket:policy,my-second-bucket
  ...

```

##### Securing access to MinIO(R) server with TLS

You can secure the access to MinIO(R) server with TLS as detailed at [MinIO(R) documentation⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.min.io/docs/how-to-secure-access-to-minio-server-with-tls.html).

This image expects the variable `MINIO_SCHEME` set to `https` and certificates to be mounted at the `/certs` directory. You can put your key and certificate files on a local directory and mount it in the container as shown below:

```console
docker run --name minio \
    --publish 9000:9000 \
    --publish 9001:9001 \
    --volume /path/to/certs:/certs \
    --env MINIO_SCHEME=https
    bitnami/minio:latest

```

or by modifying the [`docker-compose.yml`⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/bitnami/minio/docker-compose.yml) file present in this repository:

```yaml
services:
  minio:
  ...
    environment:
    ...
      - MINIO_SCHEME=https
    ...
    volumes:
      - /path/to/certs:/certs
  ...

```

##### Setting up MinIO(R) in Distributed Mode

You can configure MinIO(R) in Distributed Mode to setup a highly-available storage system. To do so, the environment variables below **must** be set on each node:

<div id="bkmrk-minio_distributed_mo">- `MINIO_DISTRIBUTED_MODE_ENABLED`: Set it to 'yes' to enable Distributed Mode.
- `MINIO_DISTRIBUTED_NODES`: List of MinIO(R) nodes hosts. Available separators are ' ', ',' and ';'.
- `MINIO_ROOT_USER`: MinIO(R) server root user. Must be common on every node.
- `MINIO_ROOT_PASSWORD`: MinIO(R) server root password. Must be common on every node.

</div>You can use the Docker Compose below to create an 4-node distributed MinIO(R) setup:

```yaml
version: '2'

services:
  minio1:
    image: bitnami/minio:latest
    environment:
      - MINIO_ROOT_USER=minio-root-user
      - MINIO_ROOT_PASSWORD=minio-root-password
      - MINIO_DISTRIBUTED_MODE_ENABLED=yes
      - MINIO_DISTRIBUTED_NODES=minio1,minio2,minio3,minio4
      - MINIO_SKIP_CLIENT=yes
  minio2:
    image: bitnami/minio:latest
    environment:
      - MINIO_ROOT_USER=minio-root-user
      - MINIO_ROOT_PASSWORD=minio-root-password
      - MINIO_DISTRIBUTED_MODE_ENABLED=yes
      - MINIO_DISTRIBUTED_NODES=minio1,minio2,minio3,minio4
      - MINIO_SKIP_CLIENT=yes
  minio3:
    image: bitnami/minio:latest
    environment:
      - MINIO_ROOT_USER=minio-root-user
      - MINIO_ROOT_PASSWORD=minio-root-password
      - MINIO_DISTRIBUTED_MODE_ENABLED=yes
      - MINIO_DISTRIBUTED_NODES=minio1,minio2,minio3,minio4
      - MINIO_SKIP_CLIENT=yes
  minio4:
    image: bitnami/minio:latest
    environment:
      - MINIO_ROOT_USER=minio-root-user
      - MINIO_ROOT_PASSWORD=minio-root-password
      - MINIO_DISTRIBUTED_MODE_ENABLED=yes
      - MINIO_DISTRIBUTED_NODES=minio1,minio2,minio3,minio4
      - MINIO_SKIP_CLIENT=yes

```

MinIO(R) also supports ellipsis syntax (`{1..n}`) to list the MinIO(R) node hosts, where `n` is the number of nodes. This syntax is also valid to use multiple drives (`{1..m}`) on each MinIO(R) node, where `n` is the number of drives per node. You can use the Docker Compose below to create an 2-node distributed MinIO(R) setup with 2 drives per node:

```yaml
version: '2'
services:
  minio-0:
    image: bitnami/minio:latest
    volumes:
      - minio_0_data_0:/bitnami/minio/data-0
      - minio_0_data_1:/bitnami/minio/data-1
    environment:
      - MINIO_ROOT_USER=minio
      - MINIO_ROOT_PASSWORD=miniosecret
      - MINIO_DISTRIBUTED_MODE_ENABLED=yes
      - MINIO_DISTRIBUTED_NODES=minio-{0...1}/bitnami/minio/data-{0...1}
  minio-1:
    image: bitnami/minio:latest
    volumes:
      - minio_1_data_0:/bitnami/minio/data-0
      - minio_1_data_1:/bitnami/minio/data-1
    environment:
      - MINIO_ROOT_USER=minio
      - MINIO_ROOT_PASSWORD=miniosecret
      - MINIO_DISTRIBUTED_MODE_ENABLED=yes
      - MINIO_DISTRIBUTED_NODES=minio-{0...1}/bitnami/minio/data-{0...1}
volumes:
  minio_0_data_0:
    driver: local
  minio_0_data_1:
    driver: local
  minio_1_data_0:
    driver: local
  minio_1_data_1:
    driver: local

```

Find more information about the Distributed Mode in the [MinIO(R) documentation⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.min.io/docs/distributed-minio-quickstart-guide.html).

##### Reconfiguring Keys on container restarts

MinIO(R) configures the access &amp; secret key during the 1st initialization based on the `MINIO_ROOT_USER` and `MINIO_ROOT_PASSWORD` environment variables, respetively.

When using persistence, MinIO(R) will reuse the data configured during the 1st initialization by default, ignoring whatever values are set on these environment variables. You can force MinIO(R) to reconfigure the keys based on the environment variables by setting the `MINIO_FORCE_NEW_KEYS` environment variable to `yes`:

```console
docker run --name minio \
    --publish 9000:9000 \
    --publish 9001:9001 \
    --env MINIO_FORCE_NEW_KEYS="yes" \
    --env MINIO_ROOT_USER="new-minio-root-user" \
    --env MINIO_ROOT_PASSWORD="new-minio-root-password" \
    --volume /path/to/minio-persistence:/bitnami/minio/data \
    bitnami/minio:latest

```

#### Logging

The Bitnami MinIO(R) Docker image sends the container logs to the `stdout`. To view the logs:

```console
docker logs minio

```

or using Docker Compose:

```console
docker-compose logs minio

```

You can configure the containers [logging driver⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.docker.com/engine/admin/logging/overview/) using the `--log-driver` option if you wish to consume the container logs differently. In the default configuration docker uses the `json-file` driver.

##### HTTP log trace

To enable HTTP log trace, you can set the environment variable `MINIO_HTTP_TRACE` to redirect the logs to a specific file as detailed at [MinIO(R) documentation⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://docs.min.io/docs/minio-server-configuration-guide.html).

When setting this environment variable to `/opt/bitnami/minio/log/minio.log`, the logs will be sent to the `stdout`.

```console
docker run --name minio \
    --publish 9000:9000 \
    --publish 9001:9001 \
    --env MINIO_HTTP_TRACE=/opt/bitnami/minio/log/minio.log \
    bitnami/minio:latest

```

or by modifying the [`docker-compose.yml`⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/bitnami/minio/docker-compose.yml) file present in this repository:

```yaml
services:
  minio:
  ...
    environment:
      - MINIO_HTTP_TRACE=/opt/bitnami/minio/log/minio.log
  ...

```

#### Maintenance

##### Upgrade this image

Bitnami provides up-to-date versions of MinIO(R), including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container.

**Step 1: Get the updated image**

```console
docker pull bitnami/minio:latest

```

or if you're using Docker Compose, update the value of the image property to `bitnami/minio:latest`.

**Step 2: Stop and backup the currently running container**

Stop the currently running container using the command

```console
docker stop minio

```

or using Docker Compose:

```console
docker-compose stop minio

```

Next, take a snapshot of the persistent volume `/path/to/minio-persistence` using:

```console
rsync -a /path/to/minio-persistence /path/to/minio-persistence.bkp.$(date +%Y%m%d-%H.%M.%S)

```

**Step 3: Remove the currently running container**

```console
docker rm -v minio

```

or using Docker Compose:

```console
docker-compose rm -v minio

```

**Step 4: Run the new image**

Re-create your container from the new image.

```console
docker run --name minio bitnami/minio:latest

```

or using Docker Compose:

```console
docker-compose up minio

```

#### Using `docker-compose.yaml`

Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated [Bitnami Helm chart⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/charts/tree/main/bitnami/minio).

If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).

#### Contributing

We'd love for you to contribute to this Docker image. You can request new features by creating an [issue⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/issues) or submitting a [pull request⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/pulls) with your contribution.

#### Issues

If you encountered a problem running this container, you can file an [issue⁠<svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit DDSExternalLink-icon css-1y80q5u" data-testid="LinkExternalIcon" fill="none" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg>](https://github.com/bitnami/containers/issues/new/choose). For us to provide better support, be sure to include the following information in your issue:

<div id="bkmrk-host-os-and-version-">- Host OS and version
- Docker version (`docker version`)
- Output of `docker info`
- Version of this contain

</div>*Note: the README for this container is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at [https://github.com/bitnami/containers/blob/main/bitnami/minio/README.md⁠](https://github.com/bitnami/containers/blob/main/bitnami/minio/README.md)*