Skip to content

Instantly share code, notes, and snippets.

@tuanlc
Created December 28, 2021 04:16
Show Gist options
  • Select an option

  • Save tuanlc/b3166f30d5a21d74a1dadbb0d890dbed to your computer and use it in GitHub Desktop.

Select an option

Save tuanlc/b3166f30d5a21d74a1dadbb0d890dbed to your computer and use it in GitHub Desktop.
run minio service in docker compose
s3-storage:
  image: minio/minio:RELEASE.2021-12-20T22-07-16Z
  container_name: s3-storage
  ports:
    - 9000:9000
    - 9001:9001
  command: server /data --console-address ":9001"
  environment:
    MINIO_ROOT_USER: minio
    MINIO_ROOT_PASSWORD: minio123
  healthcheck:
    test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
    interval: 30s
    timeout: 20s
    retries: 3
  volumes:
    - ./persistent/minio:/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment