docker-compose.yml 637 B

123456789101112131415161718192021222324
  1. version: '3.7'
  2. services:
  3. minio:
  4. container_name: minio
  5. hostname: minio
  6. image: minio/minio
  7. user: 1000:1000
  8. volumes:
  9. - ${MINIO_DATA}/data:/mnt/data
  10. - ./data/home:/home/data
  11. ports:
  12. - ${PORT_MAPPING} # s3, port 9000
  13. expose:
  14. - 9001
  15. environment:
  16. MINIO_ROOT_USER: ${MINIO_ROOT_USER}
  17. MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
  18. HOME: /home/data
  19. command: server --console-address ":9001" /mnt/data
  20. healthcheck:
  21. test: ["CMD", "curl", "-fail", "--insecure", "https://localhost:9000/minio/health/live"]
  22. interval: 30s
  23. timeout: 20s
  24. retries: 3