forked from cskefu/cskefu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (104 loc) · 3.36 KB
/
docker-compose.yml
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
version: "3"
services:
nginx:
image: nginx
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./nginx/logs:/var/log/nginx
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/certs:/certs
depends_on:
- contact-center
contact-center:
image: chatopera/contact-center:develop
restart: always
ports:
- "${CC_WEB_PORT:-8035}:8035"
- "8036:8036"
volumes:
- ./contact-center/data:/data
- ./contact-center/logs:/logs
environment:
- JAVA_OPTS=-Xmx12288m -Xms2048m -XX:PermSize=256m -XX:MaxPermSize=1024m -Djava.net.preferIPv4Stack=true
- SERVER_PORT=8035
- SERVER_LOG_PATH=/logs
- SERVER_LOG_LEVEL=${LOG_LEVEL:-WARN}
- WEB_UPLOAD_PATH=/data
- SPRING_FREEMARKER_CACHE=true
- SPRING_DATA_ELASTICSEARCH_PROPERTIES_PATH_DATA=/data
- UK_IM_SERVER_PORT=8036
- UK_IM_SERVER_HOST=localhost
- UK_IM_SERVER_THREADS=10
# set a separated port for SSL
- CS_IM_SERVER_SSL_PORT=${CC_SOCKET_PORT:-8036}
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/cosinee?useUnicode=true&characterEncoding=UTF-8
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=${DB_PASSWD:-123456}
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_PASSWORD=${DB_PASSWD:-123456}
- SPRING_DATA_ELASTICSEARCH_CLUSTER_NAME=elasticsearch
- SPRING_DATA_ELASTICSEARCH_CLUSTER_NODES=elasticsearch:9300
- SPRING_ACTIVEMQ_BROKER_URL=tcp://activemq:61616
- CSKEFU_MODULE_CALLOUT=false
- CSKEFU_MODULE_CONTACTS=true
- CSKEFU_MODULE_CHATBOT=true
- SKYPE_CHANNEL_CRM=${SKYPE_CHANNEL_CRM:-placeholder}
- BOT_THRESHOLD_FAQ_BEST_REPLY=${BOT_THRESHOLD_FAQ_BEST_REPLY:-0.9}
- BOT_THRESHOLD_FAQ_SUGG_REPLY=${BOT_THRESHOLD_FAQ_SUGG_REPLY:-0.3}
- CSKEFU_SETTINGS_WEBIM_VISITOR_SEPARATE=false
depends_on:
- mysql
- redis
- elasticsearch
- activemq
activemq:
image: chatopera/activemq:5.14.3
restart: always
environment:
- ACTIVEMQ_ADMIN_LOGIN=admin
- ACTIVEMQ_ADMIN_PASSWORD=${DB_PASSWD:-123456}
- ACTIVEMQ_ENABLED_SCHEDULER=true
- ACTIVEMQ_MIN_MEMORY=1024
- ACTIVEMQ_MAX_MEMORY=4096
volumes:
- ./database/activemq/data:/data
- ./database/activemq/logs:/var/log/activemq
ports:
- "${ACTIVEMQ_PORT1:-8051}:8161"
- "${ACTIVEMQ_PORT2:-8052}:61616"
- "${ACTIVEMQ_PORT3:-8053}:61613"
mysql:
image: chatopera/mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWD:-123456}
- MYSQL_USER=admin
- MYSQL_PASSWORD=${DB_PASSWD:-123456}
ports:
- "${MYSQL_PORT:-8037}:3306"
volumes:
- ./database/mysql/data:/var/lib/mysql
command: --max_allowed_packet=32505856
redis:
image: chatopera/redis:5.0.5
environment:
- REDIS_PASSWORD=${DB_PASSWD:-123456}
restart: always
volumes:
- ./database/redis/data:/data
ports:
- "${REDIS_PORT:-8041}:6379"
elasticsearch:
image: elasticsearch:2.4.6
restart: always
volumes:
- ./database/elasticsearch/data:/usr/share/elasticsearch/data
- ./database/elasticsearch/config:/usr/share/elasticsearch/config
- ./database/elasticsearch/plugins:/usr/share/elasticsearch/plugins
ports:
- "${ES_PORT1:-8039}:9200"
- "${ES_PORT2:-8040}:9300"