-
Notifications
You must be signed in to change notification settings - Fork 262
/
docker-compose-with-all-env.yml
184 lines (174 loc) · 4.67 KB
/
docker-compose-with-all-env.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
## !!!!!!用于docker-compose部署并启动官方镜像!!!!!!
## !!!!!!内置配置的形式启动!!!!!!!!!!!!!!!!!!!!!!!
version: '3'
################## 按需修改好配置
x-tlrtcfile-env: &tlrtcfile-env
## api服务端口
tl_rtc_file_api_port: 9092
## websocket服务端口
tl_rtc_file_socket_port: 8444
## websocket服务地址
tl_rtc_file_socket_host: 127.0.0.1:8444
## webrtc-stun中继服务地址
tl_rtc_file_webrtc_stun_host: stun:127.0.0.1:3478
## webrtc-turn中继服务地址
tl_rtc_file_webrtc_turn_host: turn:127.0.0.1:3478?transport=udp
## webrtc中继服务用户名
tl_rtc_file_webrtc_turn_username: tlrtcfile
## webrtc中继服务密码
tl_rtc_file_webrtc_turn_credential: tlrtcfile
## webrtc中继服务Secret
tl_rtc_file_webrtc_turn_secret: tlrtcfile
## webrtc中继服务帐号过期时间 (毫秒)
tl_rtc_file_webrtc_turn_expire: 86400000
## 是否开启数据库
tl_rtc_file_db_open: true
## 数据库地址
tl_rtc_file_db_mysql_host: mysql
## 数据库端口
tl_rtc_file_db_mysql_port: 3306
## 数据库名称
tl_rtc_file_db_mysql_dbName: webchat
## 数据库用户名
tl_rtc_file_db_mysql_user: tlrtcfile
## 数据库密码
tl_rtc_file_db_mysql_password: tlrtcfile
## oss-seafile存储库ID
tl_rtc_file_oss_seafile_repoid:
## oss-seafile地址
tl_rtc_file_oss_seafile_host:
## oss-seafile用户名
tl_rtc_file_oss_seafile_username:
## oss-seafile密码
tl_rtc_file_oss_seafile_password:
## oss-alyun存储accessKey
tl_rtc_file_oss_alyun_AccessKey:
## oss-aly存储SecretKey
tl_rtc_file_oss_alyun_Secretkey:
## oss-aly存储bucket
tl_rtc_file_oss_alyun_bucket:
## oss-txyun存储accessKey
tl_rtc_file_oss_txyun_AccessKey:
## oss-txyunt存储SecretKey
tl_rtc_file_oss_txyun_Secretkey:
## oss-txyun存储bucket
tl_rtc_file_oss_txyun_bucket:
## oss-qiniuyun存储accessKey
tl_rtc_file_oss_qiniuyun_AccessKey:
## oss-qiniuyunt存储SecretKey
tl_rtc_file_oss_qiniuyun_Secretkey:
## oss-qiniuyun存储bucket
tl_rtc_file_oss_qiniuyun_bucket:
## 管理后台房间号
tl_rtc_file_manage_room: tlrtcfile
## 管理后台密码
tl_rtc_file_manage_password: tlrtcfile
## openai-key,如果有多个key,逗号分隔
tl_rtc_file_openai_keys:
## 企业微信通知开关
tl_rtc_file_notify_open: false
## 企业微信通知机器人KEY,正常通知,如果有多个key,逗号分隔
tl_rtc_file_notify_qiwei_normal:
## 企业微信通知机器人KEY,错误通知,如果有多个key,逗号分隔
tl_rtc_file_notify_qiwei_error:
services:
#http模式启动api服务
api-http:
profiles: ['http']
image: iamtsm/tl-rtc-file-api
container_name: api
environment:
<<: *tlrtcfile-env
tl_rtc_file_env_mode: http
command:
- tlapi
ports:
- 9092:9092
links:
- mysql
depends_on:
- mysql
- coturn
#https模式启动api服务
api-https:
profiles: ['https']
image: iamtsm/tl-rtc-file-api
container_name: api
environment:
<<: *tlrtcfile-env
tl_rtc_file_env_mode: https
command:
- tlapi
ports:
- 9092:9092
links:
- mysql
depends_on:
- mysql
- coturn
#http模式启动socket服务
socket-http:
profiles: ['http']
image: iamtsm/tl-rtc-file-socket
container_name: socket
command:
- tlsocket
environment:
<<: *tlrtcfile-env
tl_rtc_file_env_mode: http
ports:
- 8444:8444
links:
- mysql
depends_on:
- mysql
- coturn
#https模式启动socket服务
socket-https:
profiles: ['https']
image: iamtsm/tl-rtc-file-socket
container_name: socket
command:
- tlsocket
environment:
<<: *tlrtcfile-env
tl_rtc_file_env_mode: https
ports:
- 8444:8444
links:
- mysql
depends_on:
- mysql
- coturn
#mysql服务
mysql:
profiles: ['http','https']
image: iamtsm/tl-rtc-file-mysql
container_name: mysql
restart: always
environment:
#设置root密码
MYSQL_ROOT_PASSWORD: tlrtcfile
#设置数据库
MYSQL_DATABASE: webchat
#设置用户
MYSQL_USER: tlrtcfile
#设置用户密码
MYSQL_PASSWORD: tlrtcfile
ports:
- 3306:3306
volumes:
- ./db:/var/lib/mysql
- ./my.cnf:/etc/mysql/conf.d/my.cnf
- ./log:/var/log/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
#coturn服务
coturn:
profiles: ['http','https']
image: iamtsm/tl-rtc-file-coturn
container_name: coturn
ports:
- "3478:3478/udp"
- "3478:3478/tcp"
volumes:
- ./turnserver-with-secret-user.conf:/etc/turnserver.conf