Docker compose file for the min.io S3 storage service

Published on 2023-06-05 • Modified on 2023-06-05

Here is a working docker compose file for the min.io S3 storage service ready to copy/paste into your project. Access the GUI at the http://127.0.0.1:9090 local URL.


version: '3.7'

# dockercompose -f docker-compose.yaml up -d
services:
  storage:
    image: minio/minio
    ports:
      - "9001:9000"
      - "9090:9090"
    environment:
      MINIO_ROOT_USER: ${MINIO_ROOT_USER:-app}
      MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-!ChangeMe!}
      MINIO_USE_SSL: "on"
      MINIO_S3_FORCE_PATH_STYLE: "on"
    volumes:
      - minio_data:/data
    command: server /data --console-address ":9090"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 10s
      timeout: 20s
      retries: 3

 More on Stackoverflow  More on the web  Random snippet

  Work with me!