summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/rocketchat.yml
blob: c2ba481c4520fe04230fe394859a9675823e7034 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
captainVersion: 4

services:
    $$cap_appname:
        image: registry.rocket.chat/rocketchat/rocket.chat:$$cap_app_version
        volumes:
            - $$cap_appname-data:/app/uploads
        depends_on: [$$cap_appname-db]
        environment:
            PORT: 3000
            ROOT_URL: http://$$cap_appname.$$cap_root_domain
            MONGO_URL: mongodb://$$cap_mongodb_db_username:$$cap_mongodb_db_password@srv-captain--$$cap_appname-db:27017/rocketchat?replicaSet=rs0
            MONGO_OPLOG_URL: mongodb://$$cap_mongodb_root_username:$$cap_mongodb_root_password@srv-captain--$$cap_appname-db:27017/local?replicaSet=rs0&authSource=admin

            ADMIN_NAME: $$cap_admin_name
            ADMIN_EMAIL: $$cap_admin_email
            ADMIN_USERNAME: $$cap_admin_username
            ADMIN_PASS: $$cap_admin_password

            OVERWRITE_SETTING_Site_Url: http://$$cap_appname.$$cap_root_domain

            DEPLOY_METHOD: docker
            DEPLOY_PLATFORM: caprover
        caproverExtra:
            containerHttpPort: 3000

    $$cap_appname-db:
        image: bitnami/mongodb:$$cap_app_db_version
        volumes:
            - $$cap_appname-db-data:/bitnami/mongodb
        environment:
            MONGODB_REPLICA_SET_MODE: primary
            MONGODB_REPLICA_SET_NAME: rs0
            MONGODB_PORT_NUMBER: 27017
            MONGODB_INITIAL_PRIMARY_HOST: srv-captain--$$cap_appname-db
            MONGODB_INITIAL_PRIMARY_PORT_NUMBER: 27017
            MONGODB_ADVERTISED_HOSTNAME: srv-captain--$$cap_appname-db
            MONGODB_REPLICA_SET_KEY: $$cap_mongodb_db_replicaset_key
            # root account
            MONGODB_ROOT_USER: $$cap_mongodb_root_username
            MONGODB_ROOT_PASSWORD: $$cap_mongodb_root_password
            # rocketchat database account
            MONGODB_USERNAME: $$cap_mongodb_db_username
            MONGODB_PASSWORD: $$cap_mongodb_db_password
            MONGODB_DATABASE: rocketchat
        caproverExtra:
            notExposeAsWebApp: true

caproverOneClickApp:
    variables:
        - id: $$cap_app_version
          label: Rocket.Chat Version
          description: >-
              See version numbers at https://hub.docker.com/r/rocketchat/rocket.chat/tags or https://github.com/RocketChat/Rocket.Chat/releases.
              Version must be at least `5.0.0`.
          defaultValue: '5.2.0'
          validRegex: /.{1,}/

        - id: $$cap_admin_name
          label: Rocket.Chat Admin Real Name
          defaultValue: Captain
          description: Real name of your Rocket.Chat instance's Admin user
          validRegex: /^[a-zA-Z0-9\.-\s]+$/

        - id: $$cap_admin_email
          label: Rocket.Chat Admin Email Account
          description: Email address of Rocket.Chat instance's Admin user
          validRegex: /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/

        - id: $$cap_admin_username
          label: Rocket.Chat Admin Username
          defaultValue: captain
          description: Username of your Rocket.Chat instance's Admin user
          validRegex: /^[a-zA-Z0-9\.-]+$/

        - id: $$cap_admin_password
          label: Rocket.Chat Admin Password
          defaultValue: $$cap_gen_random_hex(16)
          description: Password of your Rocket.Chat instance's Admin user. Must be at least 8 characters long
          validRegex: /.{8,}/

        - id: $$cap_app_db_version
          label: MongoDB Version
          description: >-
              See https://docs.rocket.chat/quick-start/installing-and-updating/manual-installation/mongo-versions for supported MongoDB versions.
              See https://hub.docker.com/r/bitnami/mongodb/tags/ for MongoDB image tags.
              Version must be at least `4.0.0`.
          defaultValue: '5.0'
          validRegex: /.{1,}/

        - id: $$cap_mongodb_root_username
          label: MongoDB root user's username
          defaultValue: root
          validRegex: /^[a-zA-Z0-9]+$/

        - id: $$cap_mongodb_root_password
          label: MongoDB root user password
          description: Must be at least 8 characters long. Recommended to leave the default generated
          defaultValue: $$cap_gen_random_hex(24)
          validRegex: /^[^\@]{8,}$/

        - id: $$cap_mongodb_db_username
          label: MongoDB user with permissions to Rocket.Chat database
          defaultValue: rocketchat
          validRegex: /^[a-zA-Z0-9]+$/

        - id: $$cap_mongodb_db_password
          label: Password of the MongoDB user with permissions to Rocket.Chat database
          description: Must be at least 8 characters long. Recommended to leave the default generated
          defaultValue: $$cap_gen_random_hex(24)
          validRegex: /^[^\@]{8,}$/

        - id: $$cap_mongodb_db_replicaset_key
          label: MongoDB replicaset key
          description: Must be at least 5 characters long. Recommended to leave the default generated
          defaultValue: $$cap_gen_random_hex(32)
          validRegex: /.{5,}/

    instructions:
        start: |-
            Deploy your own Rocket.Chat instance with this one click.
            For more information see https://github.com/RocketChat/Rocket.Chat
        end: |-
            Your Rocket.Chat instance is now available at http://$$cap_appname.$$cap_root_domain
            Log in to your newly deployed Rocket.Chat instance with the default admin account, username: "$$cap_admin_username" and password: "$$cap_admin_password".
            Please enable WebSocket Support.
            If you face any issues, you can reach out at,
            Forum: https://forums.rocket.chat
            Open Community Server: https://open.rocket.chat/channel/support

    displayName: Rocket.Chat
    isOfficial: true
    description: Slack like online chat, built with Meteor. Real-time conversations with your colleagues, other companies or customers.
    documentation: https://github.com/RocketChat/Rocket.Chat