summaryrefslogtreecommitdiffhomepage
path: root/public/v2/apps/chatwoot.json
blob: 83220fd0feb2d42e4d48c96a9c44d1d43b7ed354 (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
{
    "captainVersion": "2",
    "documentation": "Read more at: https://www.chatwoot.com/docs",
    "displayName": "Chatwoot",
    "description": "Open-source customer support saas alternative to Intercom, Drift, Crisp",
    "dockerCompose": {
        "version": "3.3",
        "services": {
            "$$cap_appname-postgres": {
                "image": "postgres:11.6",
                "notExposeAsWebApp": "true",
                "volumes": [
                    "$$cap_appname-postgres-data:/var/lib/postgresql/data"
                ],
                "restart": "always",
                "environment": {
                    "POSTGRES_USER": "chatwoot",
                    "POSTGRES_PASSWORD": "$$cap_chatwoot_postgres_password",
                    "POSTGRES_DB": "chatwoot"
                }
            },
            "$$cap_appname-redis": {
                "dockerfileLines": [
                    "FROM redis:alpine",
                    "CMD exec redis-server --requirepass \"$$cap_chatwoot_redis_password\""
                ],
                "notExposeAsWebApp": "true",
                "volumes": ["$$cap_appname-redis-data:/data"],
                "restart": "always",
                "environment": {
                    "REDIS_PASSWORD": "$$cap_chatwoot_redis_password"
                }
            },
            "$$cap_appname-web": {
                "containerHttpPort": "3000",
                "dockerfileLines": [
                    "FROM chatwoot/chatwoot:$$cap_chatwoot_version",
                    "RUN chmod +x docker/entrypoints/rails.sh",
                    "ENTRYPOINT [\"docker/entrypoints/rails.sh\"]",
                    "EXPOSE 3000",
                    "CMD bundle exec rake db:setup; bundle exec rake db:migrate; bundle exec rails s -b 0.0.0.0 -p 3000"
                ],
                "restart": "always",
                "environment": {
                    "RAIL_ENV": "production",
                    "RAILS_LOG_TO_STDOUT": "true",
                    "SECRET_KEY_BASE": "$$cap_chatwoot_secret_key_base",
                    "POSTGRES_HOST": "srv-captain--$$cap_appname-postgres",
                    "POSTGRES_DATABASE": "chatwoot",
                    "POSTGRES_USERNAME": "chatwoot",
                    "POSTGRES_PASSWORD": "$$cap_chatwoot_postgres_password",
                    "REDIS_URL": "redis://srv-captain--$$cap_appname-redis:6379",
                    "REDIS_PASSWORD": "$$cap_chatwoot_redis_password"
                }
            },
            "$$cap_appname-worker": {
                "dockerfileLines": [
                    "FROM chatwoot/chatwoot:$$cap_chatwoot_version",
                    "RUN chmod +x docker/entrypoints/rails.sh",
                    "ENTRYPOINT [\"docker/entrypoints/rails.sh\"]",
                    "CMD bundle exec sidekiq -C config/sidekiq.yml"
                ],
                "notExposeAsWebApp": "true",
                "restart": "always",
                "environment": {
                    "RAIL_ENV": "production",
                    "RAILS_LOG_TO_STDOUT": "true",
                    "SECRET_KEY_BASE": "$$cap_chatwoot_secret_key_base",
                    "POSTGRES_HOST": "srv-captain--$$cap_appname-postgres",
                    "POSTGRES_DATABASE": "chatwoot",
                    "POSTGRES_USERNAME": "chatwoot",
                    "POSTGRES_PASSWORD": "$$cap_chatwoot_postgres_password",
                    "REDIS_URL": "redis://srv-captain--$$cap_appname-redis:6379",
                    "REDIS_PASSWORD": "$$cap_chatwoot_redis_password"
                }
            }
        }
    },
    "instructions": {
        "start": "Open-source customer support saas alternative to Intercom, Drift, Crisp.",
        "end": "Your Chatwoot instance is now successfully deployed. \n\n Refer https://www.chatwoot.com/docs/environment-variables/ for full list of environment variables available. Let us know if you have any queries through [email protected]"
    },
    "variables": [
        {
            "id": "$$cap_chatwoot_version",
            "label": "Chatwoot Version Tag",
            "description": "https://hub.docker.com/r/chatwoot/chatwoot/tags",
            "defaultValue": "v1.3.0"
        },
        {
            "id": "$$cap_chatwoot_secret_key_base",
            "label": "Chatwoot Secret Key Base",
            "description": "The randomized string which is used to verify the integrity of signed cookies. Please use a string with more than 26 characters",
            "validRegex": "/^[^\\@]{26,}$/"
        },
        {
            "id": "$$cap_chatwoot_postgres_password",
            "label": "Postgres Password",
            "description": "Password must be at least 12 characters.  Please use a random string.",
            "validRegex": "/^[^\\@]{12,}$/"
        },
        {
            "id": "$$cap_chatwoot_redis_password",
            "label": "Redis Password",
            "description": "Password must be at least 12 characters. Please use a random string.",
            "validRegex": "/^[^\\@]{12,}$/"
        }
    ]
}