1. version: '3.8'
    2. networks:
    3. base:
    4. consul:
    5. services:
    6. minio:
    7. image: minio/minio:latest
    8. hostname: minio
    9. container_name: minio
    10. ports:
    11. - "9000:9000"
    12. - "9001:9001"
    13. restart: always
    14. command: server /data --console-address ":9001"
    15. environment:
    16. MINIO_ROOT_USER: minio
    17. MINIO_ROOT_PASSWORD: minio123
    18. MINIO_PROMETHEUS_AUTH_TYPE: public
    19. logging:
    20. options:
    21. max-size: "5M"
    22. max-file: "10"
    23. driver: json-file
    24. volumes:
    25. - ./minio/data:/data
    26. healthcheck:
    27. test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
    28. interval: 30s
    29. timeout: 20s
    30. retries: 3
    31. networks: