forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yaml
95 lines (94 loc) · 3.75 KB
/
docker-compose.production.yaml
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
version: '3'
captainVersion: 4
services:
base: &base
image: chatwoot/chatwoot:latest
env_file: .env ## Change this file for customized env variables
$$cap_appname-postgres:
image: postgres:12
volumes:
- $$cap_appname-postgres-data:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: chatwoot
POSTGRES_PASSWORD: $$cap_chatwoot_postgres_password
POSTGRES_DB: chatwoot
caproverExtra:
notExposeAsWebApp: 'true'
$$cap_appname-redis:
volumes:
- $$cap_appname-redis-data:/data
restart: always
environment:
REDIS_PASSWORD: $$cap_chatwoot_redis_password
caproverExtra:
dockerfileLines:
- FROM redis:alpine
- CMD exec redis-server --requirepass "$$cap_chatwoot_redis_password"
notExposeAsWebApp: 'true'
$$cap_appname-web:
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
caproverExtra:
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 rails db:prepare; bundle exec rails s -b 0.0.0.0 -p 3000
$$cap_appname-worker:
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
caproverExtra:
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'
caproverOneClickApp:
variables:
- id: $$cap_chatwoot_version
label: Chatwoot Version Tag
description: https://hub.docker.com/r/chatwoot/chatwoot/tags
defaultValue: v1.6.3
- 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,}$/
instructions:
start: Open-source customer support saas alternative to Intercom, Drift, Crisp.
end: >-
Your Chatwoot instance is now successfully deployed. You can create a new account using signup option.
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]
displayName: Chatwoot
isOfficial: true
description: Open-source customer support saas alternative to Intercom, Drift, Crisp
documentation: 'Read more at: https://www.chatwoot.com/docs'