forked from teamgram/teamgram-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (61 loc) · 1.51 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
version: "3"
services:
etcd:
image: appcelerator/etcd:3.3.3
restart: always
logging:
options:
max-size: "50M"
max-file: "5"
volumes:
- ${PWD}/docker/etcd/data:/data
mysql:
image: mysql:5.7.17
restart: always
logging:
options:
max-size: "50M"
max-file: "5"
volumes:
- ${PWD}/docker/mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
- ${PWD}/docker/mysql/init-sql:/docker-entrypoint-initdb.d
- ${PWD}/docker/mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=chatengine
- MYSQL_DATABASE=chatengine
# ports:
# - 3306:3306
redis:
image: redis:5.0.0-alpine3.8
restart: always
logging:
options:
max-size: "50M"
max-file: "5"
volumes:
- ${PWD}/docker/redis/redis.conf:/etc/redis/redis.conf
- ${PWD}/docker/redis/data:/data
entrypoint: redis-server /etc/redis/redis.conf
chatengine:
image: chatengine/server:latest
restart: always
logging:
options:
max-size: "50M"
max-file: "5"
environment:
- TZ=Asia/Shanghai
# IMPORTANT: replace to your own host IP.
- CHATENGINE_HOST=127.0.0.1
# options to reset etcd,redis,mysql
# - ETCD_URL=http://etcd:2379
# - REDIS_HOST=redis:6379
# - MYSQL_URI=root:chatengine@tcp(mysql:3306)/chatengine?charset=utf8mb4
volumes:
- ${PWD}/docker/nbfs:/opt/nbfs
ports:
- 12345:12345
depends_on:
- mysql
- etcd
- redis