summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/minio.yml
blob: cc086c6ee25adac8e98568742c4cbe8446538c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
captainVersion: 4
services:
    $$cap_appname:
        volumes:
            - $$cap_appname-db-data:/data
            - $$cap_appname-config-data:/root/.minio
        restart: always
        environment:
            MINIO_ROOT_USER: $$cap_access_key
            MINIO_ROOT_PASSWORD: $$cap_secret_key
            MINIO_REGION_NAME: 'eu-east-1'
            MINIO_BROWSER_REDIRECT_URL: https://$$cap_appname.$$cap_root_domain
            MINIO_SERVER_URL: https://$$cap_appname-api.$$cap_root_domain # MinIO S3 API
        caproverExtra:
            containerHttpPort: '9001'
            dockerfileLines:
                - FROM minio/minio:$$cap_minio_version
                - CMD ["server", "/data", "--console-address", ":9001"]
    $$cap_appname-api:
        image: caprover/nginx-reverse-proxy:1-ef5ffcb
        restart: always
        depends_on:
            - $$cap_appname
        environment:
            UPSTREAM_HTTP_ADDRESS: http://srv-captain--$$cap_appname:9000
            CLIENT_MAX_BODY_SIZE: '0'
caproverOneClickApp:
    variables:
        - id: $$cap_minio_version
          label: MinIO Version
          defaultValue: RELEASE.2023-01-18T04-36-38Z
          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 Root User Access Key
          defaultValue: $$cap_gen_random_hex(24)
          description: Access key for `MINIO_ROOT_USER`. If unset, minio defaults to `minioadmin`. MinIO strongly recommends specifying a unique, long, and random value for all environments.
          validRegex: /(.{5,})|(^\s{0}$)/m
        - id: $$cap_secret_key
          label: Minio Secret Key
          defaultValue: $$cap_gen_random_hex(38)
          description: Secret key for `MINIO_ROOT_PASSWORD`. If unset, minio defaults to `minioadmin`. MinIO strongly recommends specifying a unique, long, and random value for all environments.
          validRegex: /(.{8,})|(^\s{0}$)/m
    instructions:
        start: >-
            MinIO is a High Performance Object Storage released under GNU Affero General Public License v3.0. 
            It is API compatible with Amazon S3 cloud storage service.
        end: |-

            ✅  MinIO has been deployed!
            --------------------------------------------
            _MinIO has been successfully deployed! Be sure to read the next steps below before attempting to access https://$$cap_appname.$$cap_root_domain._

            --------------------------------------------
            ❗️ **IMPORTANT**: Before launching MinIO be sure to change the following settings:

            **Step 1**: Go to the settings for `$$cap_appname` and `$$cap_appname-api`
            **Step 2**: Enable **HTTPS**
            **Step 3**: Enable **Websocket Support**

            🔐 Dashboard access uses the keys set during deployment. If left blank, MinIO sets the keys by default to _minioadmin_.

            **Access Key**: $$cap_access_key
            **Secret Key**: $$cap_secret_key

            🌐 After completing the steps above, you can access MinIO at:

            **Dashboard**: https://$$cap_appname.$$cap_root_domain
            **S3 API Endpoint**: https://$$cap_appname-api.$$cap_root_domain

            --------------------------------------------
            🔰 More information on initial configuration can be found at https://docs.min.io/docs/minio-docker-quickstart-guide.html

    displayName: 'MinIO'
    isOfficial: true
    description: MinIO is a cloud storage server compatible with Amazon S3
    documentation: Taken from https://docs.min.io/docs/minio-docker-quickstart-guide.html