captainVersion: 4
services:
    $$cap_appname:
        volumes:
            - $$cap_appname-db-data:/data
            - $$cap_appname-config-data:/root/.minio
        restart: always
        environment:
            MINIO_ACCESS_KEY: $$cap_access_key
            MINIO_SECRET_KEY: $$cap_secret_key
        caproverExtra:
            containerHttpPort: '9000'
            dockerfileLines:
                - FROM minio/minio:$$cap_minio_version
                - CMD ["minio", "server", "/data"]
caproverOneClickApp:
    variables:
        - id: $$cap_minio_version
          label: Minio Version
          defaultValue: latest
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/minio/minio/tags/
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_access_key
          label: Minio Access Key
          defaultValue: ''
          description: Username to access minio server
          validRegex: /.{5,}/
        - id: $$cap_secret_key
          label: Minio Secret Key
          defaultValue: ''
          description: Password to access minio server
          validRegex: /.{8,}/
    instructions:
        start: >-
            Minio is an object storage server released under Apache License v2.0. It is compatible with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. Size of an object can range from a few KBs to a maximum of 5TB. Minio server is light enough to be bundled with the application stack, similar to NodeJS, Redis and MySQL. 
             This one click app deploy one single instance of minio. If you are deploying minio in a high demand production environment, you should consider deploying multiple instances of minio. See minio docs for more details. https://www.minio.io/
        end: Minio is deployed and available as $$cap_appname
    displayName: ''
    isOfficial: true
    description: MinIO is a cloud storage server compatible with Amazon S3
    documentation: Taken from https://hub.docker.com/r/minio/minio
