Fichier Docker compose pour le service de stockage S3 Min.io

Publié le 05/06/2023 • Actualisé le 05/06/2023


English language detected! 🇬🇧

  We noticed that your browser is using English. Do you want to read this post in this language?

Read the english version 🇬🇧 Close

Voici un fichier docker compose pour le service de stockage S2 Min.io prêt à être copié-collé dans votre projet. On peut accéder à l'interface graphique à l'URL locale http://127.0.0.1:9090.


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

 Plus sur Stackoverflow  Plus sur le web  Snippet aléatoire

  Travaillez avec moi !