forked from cskefu/cskefu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (75 loc) · 2.44 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
version: '2'
services:
mysql:
image: "mysql:5.6"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=contactcenter
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin123456
ports:
- "8037:3306"
volumes:
- $PWD/mysql/data:/var/lib/mysql
- $PWD/mysql/config:/etc/mysql
- $PWD/contact-center/config/sql/cskefu-MySQL-slim.sql:/docker-entrypoint-initdb.d/0.cskefu-MySQL-slim.sql
command: --max_allowed_packet=32505856
redis:
image: redis:latest
restart: always
command: redis-server --appendonly yes
volumes:
- $PWD/redis/data:/data
ports:
- "8041:6379"
elasticsearch:
image: "elasticsearch:2.4.6"
restart: always
volumes:
- $PWD/elasticsearch/data:/usr/share/elasticsearch/data
- $PWD/elasticsearch/config:/usr/share/elasticsearch/config
- $PWD/elasticsearch/plugins:/usr/share/elasticsearch/plugins
ports:
- "8039:9200"
- "8040:9300"
contact-center:
image: "chatopera/contact-center:develop"
restart: always
ports:
- "8035:8035"
- "8036:8036"
volumes:
- $PWD/contact-center/data:/data
- $PWD/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=INFO
- 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=
- SPRING_DATASOURCE_TYPE=com.alibaba.druid.pool.DruidDataSource
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/contactcenter?useUnicode=true&characterEncoding=UTF-8
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=123456
- MANAGEMENT_SECURITY_ENABLED=false
- SPRING_REDIS_DATABASE=2
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- CSKEFU_CALLOUT_WATCH_INTERVAL=60000
- SPRING_DATA_ELASTICSEARCH_CLUSTER_NAME=elasticsearch
- SPRING_DATA_ELASTICSEARCH_CLUSTER_NODES=elasticsearch:9300
- SPRING_DATA_ELASTICSEARCH_LOCAL=false
- SPRING_DATA_ELASTICSEARCH_REPOSITORIES_ENABLED=true
depends_on:
- mysql
- redis
- elasticsearch